Usage
Appearance
Size
Props
MultiSelect
| Prop | Type | Default | Description |
|---|---|---|---|
values | string[] | - | Controlled array of selected values. Use with onValuesChange. |
defaultValues | string[] | - | 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
| Prop | Type | Default | Description |
|---|---|---|---|
appearance | 'ghost' | 'secondary' | 'secondary' | Visual style of the trigger button. |
className | string | - | Additional CSS classes to apply. |
MultiSelectItem
| Prop | Type | Default | Description |
|---|---|---|---|
value* | string | - | The value of the item. |
disabled | boolean | false | Whether the item is disabled. |
className | string | - | Additional CSS classes to apply. |