Components
Checkbox
A styled checkbox with label, description, and indeterminate state support. Uses native input under the hood.
Basic usage
With description
Add a description for more context.
Receive emails about new features and updates.
Indeterminate
Use indeterminate for a "select all" pattern where only some children are checked.
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Text label rendered beside the checkbox. |
description | string | — | Secondary helper text below the label. |
indeterminate | boolean | false | Shows a dash instead of a checkmark (useful for "select all"). |
...rest | InputHTMLAttributes | — | All native checkbox props (checked, onChange, disabled, etc.). |
Accessibility
- Uses native
<input type="checkbox">for full keyboard and screen reader support. - Label is clickable and associated via
htmlFor. - Indeterminate state is set via the DOM property for correct AT announcement.