CheckboxGroup
Checkbox group with merged backgrounds for contiguous selections.
Installation
npx shadcn@latest add https://fluid-functionalism.vercel.app/r/checkbox-group.jsonBasic
Apples
Bananas
Cherries
Dates
API Reference — CheckboxGroup
| Prop | Type | Default | Description |
|---|---|---|---|
| checkedIndices | Set<number> | — | Set of checked item indices. Used for merged background rendering. |
| children | ReactNode | — | CheckboxItem children. |
API Reference — CheckboxItem
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Text label for the checkbox. |
| index | number | — | Position index within the group. |
| checked | boolean | — | Whether this item is checked. |
| onToggle | () => void | — | Called when this item is toggled. |