Checkbox Group

Provides shared state to a series of checkboxes, so a whole set can be driven by one value array.

$bunx shadcn@latest add @nx-ui/checkbox-group
Registry item
Installs withutils

Shared state

Checkboxes inside a CheckboxGroup contribute their `value` to one array — here an uncontrolled group via `defaultValue`.

Controlled with select-all

Control the group with `value`/`onValueChange` and drive it from a parent checkbox — `indeterminate` while only some of the set is ticked.

API reference

Exported parts and their props, extracted from the component source.

…extends CheckboxGroupPrimitive.Props