Put each option in a label.
The sample also uses Field. One command adds them with this item:
notify-channels.tsx
CheckboxGroup
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||
| size | "default""lg" | — | The size of every checkbox in the group; a checkbox prop wins. | ||||||||||||||||||||||
From Base UICheckboxGroupBase UI docs | |||||||||||||||||||||||||
| value | string[] | — | Names of the checkboxes in the group that should be ticked. To render an uncontrolled checkbox group, use the defaultValue prop instead. | ||||||||||||||||||||||
| default | string[] | — | Names of the checkboxes in the group that should be initially ticked. To render a controlled checkbox group, use the value prop instead. | ||||||||||||||||||||||
| on | — | Event handler called when a checkbox in the group is ticked or unticked. Provides the new value as an argument. | |||||||||||||||||||||||
| |||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||||||
| Tab | Moves to the next box in the group. |
|---|---|
| Space | Checks or clears the focused box. |
Built with
Installs with Checkbox Group
- Components
- Checkbox





