Checkbox
A control for an on/off choice, with support for an indeterminate state.
- Forms
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add checkboxnpm packages installed: radix-ui.
import { Checkbox } from "@/components/ui/checkbox";Default
With Description
States
Select All
Invalid
Drawn Check
<Checkbox>
Every prop of Radix UI’s Checkbox.Root, plus className.
Toggles with Space, matching the native control. Always pair with a Label via htmlFor/id — the box alone has no accessible name. Indeterminate is announced as "mixed" and is a state the application sets, not one the user can reach by clicking.
8/8
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — passes
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes