Checkbox
Accessible checkbox with label, description, and indeterminate state support.
Installation
Examples
With label and description
Label and optional secondary text.
States
Checked, unchecked, indeterminate, and disabled.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | false | Controlled checked state. |
| onCheckedChange | (v: boolean) => void | — | Called when state changes. |
| disabled | boolean | false | Disables the checkbox. |
| indeterminate | boolean | false | Shows a dash instead of a check. |
| label | ReactNode | — | Label rendered beside the checkbox. |
| description | ReactNode | — | Secondary text below the label. |