MultiselectProps
MultiselectProps =
object&VariantProps<typeofmultiSelectVariants>
Props of Multiselect
Type Declaration
children?
optionalchildren:React.ReactNode
className?
optionalclassName:string
dir?
optionaldir:string
disabled
disabled:
boolean
Whether the multiselect is disabled
displayValues?
optionaldisplayValues:Map<string,string>
Map of display values for the selected options
id?
optionalid:string
loop?
optionalloop:boolean
Whether the multiselect should loop
onOpenChange?
optionalonOpenChange:VoidFunc<boolean>
Event handler called when the multiselect's open state changes
onValuesChange
onValuesChange:
VoidFunc<string[]>
Event handler called when the selected values change
ref?
optionalref:React.RefObject<WithOpen|null>
Ref for the open trigger element
showSelectAll?
optionalshowSelectAll:boolean
Whether the multiselect should show a "Select All" option
values
values:
string[]
Values selected in the multiselect