CheckboxGroup
Forms & Input

CheckboxGroup

Multi-select checkbox list with an optional tri-state select-all row, for patterns like permissions and notification preferences.

Props

CheckboxGroup extends HTMLAttributes<HTMLDivElement>. Renders as role="group". Each option becomes a CheckboxField.

CheckboxGroupProps props
PropTypeDefaultDescription
optionsCheckboxGroupOption[]—Available choices. Each has value, label, optional description and disabled.
valuestring[]—Selected values.
onChange(value: string[]) => void—Selection handler.
inlineboolean—Lay options in a row instead of stacked.
selectAllLabelReactNode—Adds a leading tri-state select-all row.
disabledboolean—Disables the entire group.

CheckboxGroupOption has these fields:

CheckboxGroupOption props
PropTypeDefaultDescription
valuestring—Unique option value.
labelReactNode—Display label.
descriptionReactNode—Dim secondary line below the label.
disabledboolean—Disables this specific option.

Examples

CheckboxGroup with select-all
CheckboxGroup inline
ImportTSX
import { CheckboxGroup } from "@solarius/onset";
import type { CheckboxGroupOption, CheckboxGroupProps } from "@solarius/onset";