Checkbox
Inputs & Controls
macOS square checkmark box with baseline stability.
Installation
$npx shadcn-macos@latest add checkbox
Examples
Props
<Checkbox />| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | — | Controlled checked state. |
| defaultChecked | boolean | false | Initial checked state when uncontrolled. |
| onCheckedChange | (checked: boolean) => void | — | Callback fired when the checkbox state toggles. |
| label | React.ReactNode | — | Label content displayed next to the checkbox box. |
| description | string | — | Secondary helper text rendered beneath the main label. |
| disabled | boolean | false | Whether the checkbox is disabled. |
| className | string | — | Custom CSS classes. |