Checkbox
A checkbox with checked, unchecked, and indeterminate states.
When to use
- Use when
- A single on/off choice in a form that takes effect on submit.
- Avoid when
- The setting takes effect immediately; use Switch.
Installation
The source lands in src/components/ui/checkbox.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
- Packages
@base-ui/react,@stylexjs/stylex- Shelf items
foundations, Icons,utils- Accessibility
- Focus, keyboard, and ARIA behavior come from Base UI.
- Figma
- In progress. See Designers and Figma.