Component
Groups multiple checkboxes together with shared state management. Each item has a Trigger, Indicator, and Label.
View component changelogImport all parts of the component and piece them together
The root CheckboxGroup component.
| Prop | Type | Default |
|---|---|---|
value | string[] | [] |
defaultValue | string[] | [] |
onValueChange | function | -- |
| Shortcut | Description |
|---|---|
Tab | Moves focus into or out of the checkbox group. |
ArrowRight | Moves focus to the next enabled checkbox item when the group orientation allows horizontal navigation. |
ArrowDown | Moves focus to the next enabled checkbox item when the group orientation allows vertical navigation. |
ArrowLeft | Moves focus to the previous enabled checkbox item when the group orientation allows horizontal navigation. |
ArrowUp | Moves focus to the previous enabled checkbox item when the group orientation allows vertical navigation. |
Home | Moves focus to the first enabled checkbox item. |
End | Moves focus to the last enabled checkbox item. |
Space | Toggles the focused checkbox item between checked and unchecked states. |
| Reference | What Rad UI follows |
|---|---|
Each item uses checkbox semantics with aria-checked, aria-required, and aria-disabled state exposed on the focusable trigger. |