
Grouped checkboxes with shared label and accessible parent state.
npx shadcn@latest add https://ui.edbn.me/api/analytics/registry/checkbox-group.jsonProvides shared state to a series of checkboxes. Renders a div element.
defaultValuestring[]Initial selected values
valuestring[]Controlled selected values
onValueChangefunctionCalled when values change
allValuesstring[]All possible values (for parent checkbox)
disabledbooleanfalseDisable entire group
classNamestring | functionCSS class name
renderReactElement | functionCustom render function
| Attribute | Description |
|---|---|
| data-disabled | Present when group is disabled |