Checkbox
Boolean selection with accessible label. Use the wrapper or compose CheckboxRoot + CheckboxIndicator with a raw base-ui Root.
Checkbox
base-ui docs ↗Boolean selection with an accessible label. Wraps @base-ui/react Checkbox
with a styled indicator, check icon, and label layout.
| Prop | Type | Default |
|---|---|---|
| checked | boolean | — |
Controlled checked state. | ||
| defaultChecked | boolean | — |
Initial checked state (uncontrolled). | ||
| indeterminate | boolean | — |
Display a horizontal dash instead of a checkmark. | ||
| disabled | boolean | — |
Prevent interaction and dim the checkbox. | ||
| required | boolean | — |
Mark the field as required for form validation. | ||
| name | string | — |
HTML name attribute for form submission. | ||
| value | string | — |
HTML value attribute for form submission. | ||
| onCheckedChange | ((checked: boolean, eventDetails: unknown) => void) | — |
Called when checked state changes. | ||
| children | ReactNode | — |
Label content rendered next to the checkbox. | ||
| id | string | — |
Override the auto-generated element id. | ||
| className | string | — |
Styled Parts
base-ui docs ↗Pre-styled wrappers around the corresponding base-ui parts. All base-ui props are forwarded.
CSS Class Names
Available as keys on the CheckboxStyles object. Each key maps to a hashed CSS module class name at runtime.
iconindicatorlabelroot