IAutocompleteProps

interface
State & Interaction

Props controlling the autocomplete / combobox behaviour — search text, delimiters, auto-select and clear-on-select.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

autoSelectFirst
boolean | string
Automatically selects the first suggestion when the list opens. Pass "exact" to select only on exact match.
clearOnSelect
boolean
Clears the search text after the user picks an item.
delimiters
Array<string>
Array of characters that trigger chip creation in a combobox (e.g. [",", " "]).
search
string
The current search / filter string, bound via v-model:search.
autocomplete
boolean
Enables native browser autocomplete on the underlying input.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Autocomplete with auto-select and clear on select

vue