Dropdown

Overview

Dropdowns present a list of options from which a user can select one option, or several. A selected option can represent a value in a form or can be used as an action to filter or sort existing content.

Demo

Props

PropertyDescriptionTypeValuesDefaultRequired
labelThe label for the inputstringstring
optionsA list of options for the dropdownDropdownOption[]DropdownOption[]
hideLabelHide the labelboolean | undefinedboolean | undefined
disabledDisable the selectboolean | undefinedboolean | undefined
requiredMake the select requiredboolean | undefinedboolean | undefined
placeholderThe placeholder for the selectstring | undefinedstring | undefined
wrapperClassAdd a class to the input wrapstring | string[] | undefinedstring | string[] | undefined
modelValuestring | number | boolean | undefinedstring | number | boolean | undefined

Events

NameReturn Type
update:modelValue[value: string | number | boolean | undefined]