Checkbox
Displays a checkbox built on the Base UI Checkbox primitive, for accepting terms, toggling settings, and picking several options.
Installation
Bash
Usage
Examples
Indeterminate
A parent checkbox reflecting a partial selection — indeterminate is
independent of checked and controlled by you.
Disabled
API reference
Checkbox
Extends the Base UI Checkbox Root — all its props apply. The check indicator is built in; pair with Label for the click-target text.
| Prop | Type | Default |
|---|---|---|
checked / defaultChecked | boolean | false |
onCheckedChange | (checked: boolean) => void | — |
indeterminate | boolean | false |
disabled | boolean | false |
name / value | string — form submission | — |