VAutocomplete
TheVAutocomplete component provides a searchable dropdown that filters items as the user types. It extends VTextField with autocomplete functionality, supporting both single and multiple selection modes.
Basic Usage
Props
Automatically select the first item when the menu opens. If set to ‘exact’, only selects when the search value exactly matches the item title.
Clear the search input after selecting an item (useful with multiple mode).
The current search query. Can be bound with
v-model:search.Array of items to display in the dropdown.
Property name or function to determine the display text for each item.
Property name or function to determine the value for each item.
Return the entire item object as the value instead of just the item value.
Allow multiple item selection.
Display selected items as chips.
Allow chips to be closed/removed.
Hide selected items from the list.
Hide the menu when there are no items to display.
Icon to display for the dropdown menu indicator.
Text to display when no items match the search.
Item properties to use when filtering.
Open the menu when the clear icon is clicked.
Multiple Selection
Custom Filtering
Auto Select First
Events
Emitted when the selected value changes.
Emitted when the search query changes.
Emitted when the menu opens or closes.
Emitted when the input focus state changes.
Slots
Customize the appearance of list items.
Customize the appearance of selected chips.
Customize how selected items are displayed.
Content to display when no items are available.
Content to display before the list items.
Content to display after the list items.