Multiselect

A multiselect dropdown.

Usage

Appearance

Size

Props

MultiSelect

PropTypeDefaultDescription
valuesstring[]-Controlled array of selected values. Use with onValuesChange.
defaultValuesstring[]-Initially selected values for an uncontrolled multiselect.
onValuesChange(values: string[]) => void-Callback when the selected values change.
size'sm' | 'md' | 'lg''md'Size of the multiselect.

MultiSelectTrigger

PropTypeDefaultDescription
appearance'ghost' | 'secondary''secondary'Visual style of the trigger button.
classNamestring-Additional CSS classes to apply.

MultiSelectItem

PropTypeDefaultDescription
value*string-The value of the item.
disabledbooleanfalseWhether the item is disabled.
classNamestring-Additional CSS classes to apply.