DDCheckbox
A checkbox with personality. The spring-physics check animation and label strikethrough transform a mundane control into a satisfying micro-interaction. The square variant fits form contexts while the circle variant works for task lists.
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 |