Forms
CheckboxGroup
Several independent options under one label. Each checkbox can be on or off.
When to use
Pick any number of options from a short list (up to ~8) that stay visible.
Use something else
Exactly one option โ RadioGroup. Long list โ MultiSelect.
Do
- Give the group a
label(legend). - Stack vertically unless there are 2โ3 short options.
Don't
- Don't nest groups more than one level.
Props
| Prop | Type |
|---|---|
label | string |
options required | Array<{ value: string; label: string; disabled?: boolean }> |
value | string[] |
defaultValue | string[] |
onChange | (v: string[]) => void; orientation?: 'vertical' | 'horizontal'; className?: string |
Use
const { CheckboxGroup } = window.Tessera;
const el = React.createElement(CheckboxGroup, { /* props */ });