A raised checkbox that sinks when pressed. The tick draws itself in. It supports the mixed state, a label and a description.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | Controlled checked state. | |
| defaultChecked | boolean | false | Initial checked state when uncontrolled. |
| onCheckedChange | (checked: boolean) => void | Called with the new checked state whenever it changes. | |
| indeterminate | boolean | false | Show the mixed state (a dash). It clears as soon as the user clicks. |
| disabled | boolean | Stops the user from changing the checkbox. | |
| label | ReactNode | Visible label shown next to the checkbox. | |
| description | ReactNode | Smaller helper text shown under the label. | |
| name | string | When set, a hidden input is rendered so the value posts with a form. | |
| value | string | "on" | Value posted with the form when checked. Used with name. |
| aria-label | string | Required when there is no visible label. | |
| className | string | Extra classes added to the outer element. |