Select

A versatile select component that allows users to choose one or more options from a dropdown list. It supports both single and multiple selection modes, includes search functionality, and provides various customization options.

Props

NameDefaultType
modelValueSelectOption[] undefined
The selected option(s)
optionsSelectOption[]
Array of options to display
singletrueboolean
Whether to allow only single selection
readonlyfalseboolean
Whether the select is readonly
labelstring
The label text for the select
placeholderstring
Placeholder text when no option is selected
expandfalseboolean
Expands the select to fill available width
hintstring
Helper text displayed under the label
searchfalseboolean
Whether to enable search functionality
requiredfalseboolean
Whether the select is required
errors[]string[]
Array of error messages to display
disabledfalseboolean
Whether the select is disabled
sizems m l
Controls the input height and padding
showClearfalseboolean
Shows a clear button when there is a selected value
maxActiveOptionsnumber
Maximum number of options that can be selected (multiple mode only)
maxHeightnumber string
Maximum height of the dropdown before it starts scrolling
noMobileDrawerfalseboolean
Disables mobile drawer behavior in the underlying dropdown
transition-namestring none
Allows you to change or disable the Vue transition for dropdown appear. By default, placement-based transition is used. Set to none when using the View Transitions API to prevent the default animation from conflicting with your view transition.

Events

NamePayloadDescription
update:modelValueSelectOption[] undefinedEmitted when selection changes

Types

interface SelectOption {
  value: any
  label: string
}