CheckboxGroup

Checkbox group with merged backgrounds for contiguous selections.

Installation

npx shadcn@latest add https://fluid-functionalism.vercel.app/r/checkbox-group.json

Basic

API Reference — CheckboxGroup

PropTypeDefaultDescription
checkedIndicesSet<number>Set of checked item indices. Used for merged background rendering.
childrenReactNodeCheckboxItem children.

API Reference — CheckboxItem

PropTypeDefaultDescription
labelstringText label for the checkbox.
indexnumberPosition index within the group.
checkedbooleanWhether this item is checked.
onToggle() => voidCalled when this item is toggled.