Select
Searchable
Props
Name
Type
disabled
boolean
error
boolean
options
Option[]
modelValue
string | number | Array<string | number> | null
clearable
boolean
clearValue
string | null | []
multiple
boolean
loading
boolean
searchable
boolean
searchPlaceholder
string
Defaults to ‘Search…‘
search
(term: string, option: Option) => boolean
some key
some data
content code
Events
Name
Payload
select
{ value: string | number, label: string }
Fired after an option has been selected
deselect
{ value: string | number, label: string }
Fired after an option has been selected
clear
Fired after the selection has been cleared
update:modelValue
string | number | Array<string | number> | null
Fired after the selection has been changed
Slots
Name
Payload
selection
{ selection: props.modelValue }
Each option in the list
no-value
Content to be displayed if there’s no selection made. Defaults to “Choose”.
no-results
Content to be displayed if the list is empty (either no options or all options are filtered out). Defaults to “No results”.
option
{ option: {disabled?: boolean, label: string, value: string | number, [key: string]: unknown}, selected: boolean }
Each option in the list