DD Components
DDCheckbox
Spring-animated checkbox with square and circle variants. Features stroke animation on check and label strikethrough with spring bounce.
Preview
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| checked* | boolean | — | Whether the checkbox is checked |
| onChange* | (checked: boolean) => void | — | Called when check state changes |
| label | string | — | Text label next to checkbox |
| variant | "square" | "circle" | "square" | Visual variant |
| size | number | 20 / 16 | Size in pixels (20 for square, 16 for circle) |
| className | string | — | Additional CSS classes |