Skip to content

Select

Single choice from dropdown.

Demo

Default

Loading

Empty

Invalid

API

Props

Name Type Default
modelValuetype X =anynull
optionstype X =T[]null
mapLabeltype X =((option: T) => string) | keyof TString(T)
mapValuetype X =((option: T) => unknown) | keyof TT
hasSearchtype X =booleanfalse
isMultipletype X =booleanfalse
isLoadingtype X =booleanfalse

Events

Name Type
update:modelValuetype X =(value: any) => any

Slots

Name Type
optionLabeltype X =scope: {option: T}

Code examples

js
<Select
v-model="modelValue"
:options="products"
map-label="name"
map-value="(product) => product.id"
has-search
/>