Skip to content

Combobox

Overview

Root of a Combobox widget. Combines a searchable input with a filtered option list.

Props

NameTypeRequiredDefaultDescription
modelValuestring|number|boolean|object|arrayundefinedThe controlled value. Can be bound with v-model.
defaultValuestring|number|boolean|object|arrayundefinedInitial value when uncontrolled.
openbooleanundefinedThe controlled open state. Can be bound with v-model:open.
defaultOpenbooleanundefinedInitial open state when uncontrolled.
multiplebooleanundefinedWhether multiple options can be selected.
dirstringundefinedReading direction.
disabledbooleanundefinedWhen true, prevents user interaction.
highlightOnHoverbooleanundefinedWhether hovering an item triggers highlight.
bystring|funcundefinedField for object comparison, or a custom comparison function.
namestringundefinedName for form submission.
requiredbooleanundefinedWhether the field is required.
resetSearchTermOnBlurbooleanundefinedWhether to reset the search term when the input blurs.
resetSearchTermOnSelectbooleanundefinedWhether to reset the search term when a value is selected.
asstring|objectundefinedThe HTML element or component to render as.
asChildbooleanundefinedWhether to render as a child element.

Slots

default

Scoped slot.

Events

NameDescription
update:modelValueEmitted when the value changes.
update:openEmitted when the open state changes.
highlightEmitted when an item is highlighted.

Full event reference

Source

client/lib/controls/combobox/Combobox.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2