Skip to content

BaseDropDown

Accessible drop down component

Props

Prop nameDescriptionTypeValuesDefault
optionsspecify options to choose from
needs to be an array with label and value properties
array-[]
labellabel for the drop down, recommended to define for accessibilitystring-'Drop Down'
placeholderplaceholder appearing in select when no option was
selected
string-'Select'
modelValuethe selected valueobject-{
value: '',
label: ''
}
showLabeldefine if label should be shownboolean-false
headerBackgroundColorset the background color of drop down headstring-'inherit'
languageset a language (ISO 639-1)string-''
valuePropset the name of the property that holds the valuestring-'value'
isDisabledflag to set drop down inactiveboolean-false
withSpacingflag to disable spacing left and right
(needed for sidebar drop downs)
boolean-true
alignDropDownalign drop down with left or right borderstringleft, right'left'
idset id if drop down with this label appears more than oncestring|number-''

Events

Event namePropertiesDescription
update:model-valueundefined Object - the selected optionEvent emitted when an option is selected

Slots

NameDescriptionBindings
header-rightplace elements right of header
defaultcreate custom drop down body

Demo

Drop Down Single Style without label

Drop Down with label and with custom background color