DrawCheckbox
A checkbox whose checkmark draws itself (path length animation) and settles with a tiny overshoot. The box scales from 0.9 -> 1.04 -> 1.0 for a tactile snap feel.
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/draw-checkbox
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| label | React.ReactNode | undefined | Label text displayed next to the box |
| description | string | undefined | Helper text below the label |
| indeterminate | boolean | false | When true, renders a horizontal bar instead of a checkmark |
| checked | boolean | undefined | Controlled checked state |
| defaultChecked | boolean | false | Initial checked state (uncontrolled) |
| disabled | boolean | false | Prevents interaction |