Installation
Usage
Components
Checkbox (Root)
Controlled checked state.
Default checked state for uncontrolled usage.
Callback when checked state changes.
Disables the checkbox.
Sets the checkbox to indeterminate state.
CheckboxIndicator
Keep the indicator mounted when unchecked.
The indicator automatically shows a check icon when checked and a minus icon when indeterminate.
Examples
Basic Usage
With Label
Controlled
Indeterminate State
Accessibility
- Built on @base-ui/react for full ARIA support
- Keyboard accessible (Space to toggle)
- Focus visible ring
- Proper checked/unchecked/indeterminate states
- Works with labels via htmlFor