CheckBox
A smooth, animated checkbox component with customizable color, size, and duration.
Preview
Installation
npx shadcn@latest add "https://ui.rechesoares.com/registry/checkbox.json"
Component Props
Prop | Type | Default | Required | Description |
---|---|---|---|---|
checked | boolean | - | Yes | Controls whether the checkbox is checked. |
onClick | () => void | - | Yes | Function to call when the checkbox is clicked. |
size | number | 32 | No | Size of the checkbox in pixels. |
color | string | #00e599 | No | Color of the checkbox stroke. |
duration | number | 1 | No | Duration of the check animation in seconds. |