---
title: "Checkbox animated icon"
description: "Checkbox animated icon (Forms & input). Box presses, check whips on; toggle retracts the check."
canonical: https://generativeicons.com/icons/checkbox/
---

# Checkbox animated icon

Box presses, check whips on; toggle retracts the check.

- Id: `checkbox`
- Category: Forms & input
- Search terms: check box, tick box, tickbox, checked, unchecked, opt in, agree to terms, accept terms, todo item, checklist item, select option
- Two states: unchecked to checked, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/checkbox.lottie (dotLottie, 6983 bytes, sha256 8dd648372b34e62cf6b63e403fd5245ac0147a258b9156aaf6885f75a0555961)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add checkbox
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/checkbox.mjs';

export function CheckboxIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/checkbox.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/checkbox/ · https://generativeicons.com/api/icons/checkbox
