@manta-eu/react/multi-select
Reference for @manta-eu/react/multi-select as it is on main.
Type Aliases
MultiSelectOption
MultiSelectOption =
object
Properties
disabled?
optionaldisabled?:boolean
icon?
optionalicon?:ReactNode
label
label:
ReactNode
searchText?
optionalsearchText?:string
Text to match against when searching; defaults to the label when it is a string, otherwise the value.
value
value:
string
MultiSelectProps
MultiSelectProps =
object
Properties
aria-label?
optionalaria-label?:string
className?
optionalclassName?:string
clearable?
optionalclearable?:boolean
disabled?
optionaldisabled?:boolean
emptyMessage?
optionalemptyMessage?:string
error?
optionalerror?:string
Validation message; renders below the control and is announced via aria-errormessage. Implies invalid.
invalid?
optionalinvalid?:boolean
onChange
onChange: (
value) =>void
Parameters
value
string[]
Returns
void
options
options:
MultiSelectOption[]
A selected id with no matching option stays in state but shows no chip; keep options complete.
placeholder?
optionalplaceholder?:string
searchPlaceholder?
optionalsearchPlaceholder?:string
size?
optionalsize?:MultiSelectSize
value
value:
string[]
MultiSelectSize
MultiSelectSize =
"sm"|"base"|"lg"
Functions
MultiSelect()
MultiSelect(
props):Element
Parameters
props
Returns
Element