Checkbox
A checkbox component built on Base UI.
Installation
First install? Complete the one-time host setup.
Live preview
A single on/off toggle for a boolean choice like accepting terms or enabling a setting.
Loading preview…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | — | Controlled checked state. |
| defaultChecked | boolean | — | Initial state when uncontrolled. |
| indeterminate | boolean | false | Renders the dash glyph for a mixed selection. |
| onCheckedChange | (checked: boolean) => void | — | Fires when the user toggles the box. |
| disabled | boolean | false | Dims the box and blocks interaction. |