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. The component automatically displays the appropriate icon (checkmark for checked, dash for indeterminate) based on state.
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.
import { Checkbox } from "@strongtie/design-system/checkbox"All components extend Radix UI primitives. See the Radix UI documentation for all available props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
checkboxcheckbox-indicatorOther CSS classes used by this component:
checkboxcheckbox-iconcheckbox-indicatorThis component inherits accessibility features from Radix UI, including: