Skip to main content

Combobox

The Combobox component is a Autocomplete that allows the user to enter values that do not exist within the provided items.

info

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

Props

AttributeDescriptionTypeDefault
allowOverflowAllow the menu to overflow off the screen.booleantrue
appendIconAppends an icon to the component, uses the same syntax as Icon.string'$dropdown'
attachSpecifies which DOM element that this component should detach to.anyfalse
autofocusEnables autofocus.booleanfalse
autoSelectFirstWhen searching, will always highlight the first option.booleanfalse
avoidClearableTabIndex
backgroundColorChanges the background-color of the input.stringundefined
cacheItemsKeeps a local unique copy of all items that have been passed through the items prop.booleanfalse
chipsChanges display of selections to chips.booleanfalse
compareValueQLegend is used for comparison values. You can look at the QLegend document.stringundefined
compareTextQLegend is used for comparison values. You can look at the QLegend document.stringundefined
compareTableValueQLegend is used for comparison values. You can look at the QLegend document.stringundefined
classAllows custom properties to take effect.stringundefined
clearIconApplied when using clearable and the input is dirty.string'$clear'
clearableAdd input clear functionality, default icon is Material Design Icons mdi-clear.booleanfalse
counterCreates counter for input length; if no number is specified, it defaults to 25. Does not apply any validation.functionnull
counterValueCreates counter for input length; if no number is specified, it defaults to 25. Does not apply any validation.boolean - string - numberundefined
darkApplies the dark theme variant to the component.booleanfalse
deletableChipsAdds a remove icon to selected chips.booleanfalse
delimitersAccepts an array of strings that will trigger a new tag when typing. Does not replace the normal Tab and Enter keys.array[]
denseReduces the input height.booleanfalse
disabledDisable the input.booleanfalse
eagerWill force the components content to render on mounted.booleanfalse
errorPuts the input in a manual error state.booleanfalse
errorCountThe total number of errors that should display at once.number | string1
errorMessagesPuts the input in an error state and passes through custom error messages. Will be combined with any validations that occur from the rules prop. This field will not trigger validation.string | array[]
formatAllows us to add format to this property.string|numberundefined
formatValuesIt allows us to determine the limits and conditions of the format we add.string|numberundefined
filterThe filtering algorithm used when searching.function(item, queryText, itemText) => {}
hideDetailsHides hint and validation errors.boolean | stringundefined
hideNoDataHides the menu when there are no options to show.booleanfalse
hideSelectedDo not display in the select menu items that are already selected.booleanfalse
hintHint textstringundefined
itemColorSets color of selected items.string'primary'
itemDisabledSet property of items’s disabled value.string | array | functiondisabled
itemTextSet property of items’s disabled value.string | array | functiontext
itemValueSet property of items’s value - must be primitive.string | array | functionvalue
itemsCan be an array of objects or array of strings. When using objects, will look for a text, value and disabled keys.array[]
labelSets input label.stringundefined
loadingDisplays linear progress bar.boolean | stringfalse
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 | object{ closeOnClick: false, closeOnContentClick: false, disableKeys: true, openOnClick: false, maxHeight: 304 }.
multipleChanges select to multiple. Accepts array for value.booleanfalse
noDataTextDisplay text when there is no data.string'$vuetify.noDataText'
noFilterDo not apply filtering when searching. Useful when data is being filtered server side.booleanfalse
openOnClearWhen using the clearable prop, once cleared, the select menu will either open or stay open, depending on the current state.booleanfalse
outlinedApplies the outlined style to the input.booleanfalse
persistentHintForces hint to always be visible.booleanfalse
persistentPlaceholderForces placeholder to always be visible.booleanfalse
placeholderSets the input’s placeholder text.stringundefined
prefixDisplays prefix text.stringundefined
prependInnerIconPrepends an icon inside the component’s input, uses the same syntax as Icon.stringundefined
preventPastePrevents copy-pasting of data.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. The input field will enter an error state if a function returns (or any value in the array contains) false or is a string.array[]
searchInputSearch value. Can be used with .sync modifier.stringundefined
singleLineLabel does not move on focus/dirty.booleanfalse
smallChipsChanges display of selections to chips with the small property.booleanfalse
soloChanges the style of the input.booleanfalse
soloInvertedReduces element opacity until focused.booleanfalse
stepIt makes the step-by-step separation of the component according to what is added to the type proup.numberunfedined
successPuts the input in a manual success state.booleanfalse
successMessagesPuts the input in a success state and passes through custom success messages.string | array[]
suffixDisplays suffix text.stringundefined
typeSets input type.string'text'
validateOnBlurDelays validation until blur event.booleanfalse
tabindexIt determines the order of switching from one component to another with the tab key.string
valueValue can be entered.stringundefined
visibleVisibility of Combobox component.booleantrue

Events

AttributeDescription
changeEmitted when the input is changed by user interaction
blurEmitted when the input is blurred
inputThe updated bound model
keydownEmitted when any key is pressed
clickEmitted when input is clicked
pdate:search-input The search-input.sync event

Mobile Usage

Use VSelect or VAutocomplete on mobile.

Samples Component

image image image

Samples Qjson

combobox
ComboboxDefaultSelection
comboboxSelected
ComboboxWithTreeView
SelectAll_Combobox
ComboboxAddItemWithDialog
ComboboxAddItemWithTextField
ResetCombobox