Installation
npx shadcn@latest add @iconiq/checkbox-groupProps
CheckboxGroupOption
4 props
Each option row is described with a plain object and rendered as an animated button.
label
stringRequired
Primary copy shown for the row.
value
stringRequired
Stable identifier used when checking whether the row is selected and when producing the next selection array.
description
stringOptional secondary text rendered below the label.
disabled
booleanDisables the row button and blocks hover, active, and toggle behavior for that option.
CheckboxGroup
4 props
Animated multi-select list whose checked state is derived entirely from the value prop.
options
CheckboxGroupOption[]Required
Array of rows to render, in display order.
value
string[]Default
[]Current selected values. The component does not keep internal selection state beyond this prop.
onChange
(value: string[]) => voidReceives the next selected values array after a row is toggled.
className
stringMerged onto the root flex column wrapper.
Notes
If you want the UI to update when a user clicks, you must feed the next array from onChange back into value. Without that parent state loop, the component stays visually unchanged.
Rows are buttons, not native checkbox inputs, so form submission and checkbox semantics are not provided out of the box.