Getting Started
Foundations
Components
Search for a command to run...
Checkboxes are used for binary choices or multi-select scenarios where users can select multiple options from a list. They support three states: checked, unchecked, and indeterminate (useful for "select all" scenarios where some but not all child items are selected). Built on top of Radix UI's Checkbox primitive with full keyboard navigation and accessibility support, including proper ARIA attributes and focus management.
Checkboxes should be used with labels to clearly describe what option the user is selecting. For mutually exclusive options where only one choice can be selected, use RadioGroup instead. The component automatically displays the appropriate icon (checkmark for checked, dash for indeterminate) based on state.
import { Checkbox } from "@strongtie/design-system/checkbox"All components accept standard HTML attributes and React props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
checkboxEnsure proper accessibility attributes are added when implementing this component.