Called whenever the text changes (free typing + selection)
onSuggestionSelect
(suggestion: AutocompleteSuggestion) => void
—
Called only when a suggestion is selected from the list
class
string
—
CSS class on the root element
id
string
—
id on the rendered <input>, so a <label for> can target it (falls back to an auto-generated id)
aria-label
string
—
Accessible label
aria-labelledby
string
—
ID of an element that labels the input
aria-describedby
string
—
ID of an element that describes the input
Unlike Combobox and Select, Autocomplete's value is only read once in onBeforeMount (defaultValue ?? value ?? "") to seed its internal text state — it is not resolved on every render. Use onValueChange to read the current text; there is no supported way to push a new value into an already-mounted Autocomplete from the outside.
The suggestion list only appears once the user has typed something (_open is set to value.length > 0 on input). An empty input shows no suggestions. If you need to show all options on focus, provide a custom filterFn that always returns true when the query is empty — but note the list still won't open until an input event fires, since opening is driven by typing rather than focus.