A suggestion input that filters as you type. The input carries the combobox semantics and the dropdown is a listbox; on selection the label is filled back in. Full keyboard navigation (arrow keys / Enter / ESC). By default the dropdown is appended to the body (fixed positioning so it follows the input).
Autocomplete
<template><divclass="demo-col"style="gap: 18px"><divclass="demo-row"style="gap: 12px;flex-wrap: wrap"><LhAutocompletev-model="value":options="options"placeholder="Type a keyword (matches shown by default)"@select="onSelect"/><LhAutocompletev-model="value":options="options"disabled/></div><divclass="demo-row"style="gap: 12px;flex-wrap: wrap"><LhAutocompletev-model="emptyValue":options="[]"><template#empty><spanclass="demo-note">Slot empty: no matching themes</span></template></LhAutocomplete><LhAutocompletev-model="readonlyValue":options="options":open-on-focus="false"placeholder="No panel on focus; filters once you type"/></div><pclass="demo-note">Current value: {{ value || '(empty)' }}{{ selected }}</p></div></template><script>exportdefault{data:()=>({value:'',selected:'',emptyValue:'',readonlyValue:'',options:[{label:'Ink'},{label:'Rice paper'},{label:'Seal'},{label:'Negative space'},{label:'Gongbi (disabled)',disabled:true},],}),methods:{onSelect(value){this.selected =`, selected: ${value}`},},}</script>