ComponentProduct
Checkbox
Checkbox with checked, unchecked, and disabled states.
npx context-ds add checkboxUsage
Use it for
Multiple choices and table row selection.
Avoid
- Checkboxes for settings that apply at once (use a switch)
Dependencies: @radix-ui/react-checkbox, lucide-react
Example
examples/checkbox.tsx
Source
components/ui/checkbox.tsx
Reference: none in PR 1045 (the dashboard has no checkbox; the site's DotCheckbox in src/components/ui/dot-checkbox.tsx is a static mark).