Checkbox
v0.15.0Checked, unchecked and indeterminate.
Checkbox default
Install
npx shadcn add @syncrobotic/checkbox Also installs: radix-ui, lucide-react, @syncrobotic/cn
Overview
A box that is checked, unchecked or partly checked. Changes apply when the form is saved.
When to use
- Agreeing to terms.
- Choosing several items from a list.
- Select all, with the partly-checked state.
Use something else
- A setting that applies immediately: Switch.
- Exactly one of several options: Radio group.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Checkbox with description
Checkbox indeterminate
Checkbox disabled
Usage rules
- Keep the whole 44 px row tappable by pairing it with its Label.
- Changes apply on save. For settings that apply immediately, use Switch.
Changelog
- 0.15.02026-11-19The 20 px box answers a 44 px touch.
- 0.12.02026-11-18Disabled is never faded: the box keeps its edge and the grey label says it is off limits; when checked or mixed, grey instead of the primary, so it reads in glare.
- 0.10.02026-11-18Radius 4 (the new radius-2xs): at 20 px, radius 8 made the box read as a radio button.