Skip to main content

Select

The Select component is designed for gathering user input from a predefined list of options. This component streamlines the process of data collection.

info

For more details about Vuetify’s usage of Select component, click Select page.
For more prop explanations, click Vuetify Select API page.

Props

AttributeDescriptionTypeDefault
attachSpecifies which DOM element that this component should detach to.booleanfalse
appendIconAppends an icon to the component, uses the same syntax as Icon.stringundefined
backgroundColorChanges the background-color of the inputstringundefined
chipsChanges display of selections to chips.booleanfalse
classllows custom properties to take effect.stringundefined
compareValueQLegend is used for comparison values. You can look at the QLegend documentstringundefined
compareTextQLegend is used for comparison values. You can look at the QLegend documentstringundefined
compareTableValueQLegend is used for comparison values. You can look at the QLegend documentstringundefined
darkApplies the dark theme.booleanfalse
clearableAdd input clear functionality.booleanfalse
deletableChipsAdds a remove icon to selected chips.booleanfalse
disabledDisables the input.booleanfalse
eagerWill force the components content to render on mounted. booleanfalse
errorPuts the input in a manual error state.booleanfalse
errorMessagePuts the input in an error state and passes through custom error messages.stringundefined
hideDetailsHides hint and validation errors.boolean-stringundefined
hintHint text.stringundefined
itemsCan be an array of objects or array of strings. When using objects, will look for a text, value and disabled keys.arrayundefined
itemColorSets color of selected itemsstringprimary
itemTextSet property of items’s text valuestring-array-functionundefined(text)
itemValueSet property of items’s value - must be primitive.string-array-functionundefined(value)
labelSets input label.stringundefined
loadingDisplays linear progress bar.booleanfalse
menuPropsPass props through to the menu component. Accepts either a string for boolean props menu-props="auto, overflowY", or an object :menu-props="{ auto: true, overflowY: true }".string - array - objectundefined
multipleChanges select to multiple. Accepts array for value.booleanfalse
persistentHintForces hint to always be visible.booleanfalse
persistentPlaceHolderForces placeholder to always be visible.booleanfalse
placeholderSets the input’s placeholder text.stringundefined
prependInnerIconPrepends an icon inside the component’s input, uses the same syntax as Icon.stringundefined
soloChanges the style of the input.booleanfalse
soloInvertedReduces element opacity until focused.booleanfalse
successPuts the input in a manual success state.booleanfalse
successMessagePuts the input in a success state and passes through custom success messages.stringundefined
readonlyPuts input in readonly state.booleanfalse
rulesAccepts a mixed array of types function, boolean and string. Functions pass an input value as an argument and must return either true / false or a string containing an error message.string-arrayundefined
tabIndexAllows component to give and receive focus.numberundefined
autofocusEnables autofocus.booleanfalse
valueThe input’s value.numberundefined
visibleVisibility of Select component.booleantrue

Events

AttributeDescription
update?
changeEmitted when the input is changed by user interaction

Usage Scenario

  • Each item in the array assigned to the items prop of the component should have keys named text and value.
  • Assign text to the itemText prop of the component.
  • Assign value to the itemValue prop of the component.
  • If only one value is to be displayed (no separate fields for text and value), the same value can be assigned to both keys.