Tessera
GitHub

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

PropType
labelstring
options requiredArray<{ value: string; label: string; disabled?: boolean }>
valuestring[]
defaultValuestring[]
onChange(v: string[]) => void; orientation?: 'vertical' | 'horizontal'; className?: string

Use

const { CheckboxGroup } = window.Tessera;
const el = React.createElement(CheckboxGroup, { /* props */ });