Autocomplete

Navigation

An accessible autocomplete input with async search, debouncing, keyboard navigation, loading states, and animated dropdown with highlighted matches.

Loading preview...
Customize
Placeholder
Label
Debounce (ms)
300
Disabled

Props

PropTypeDefaultDescription
onSelect(option: AutocompleteOption) => voidundefinedCallback when an option is selected.
onSearch(query: string) => Promise<AutocompleteOption[]>requiredAsync function to fetch search results.
placeholderstring'Search...'Input placeholder text.
labelstringundefinedFloating label text.
loadingbooleanfalseExternal loading state.
debounceMsnumber300Debounce delay in milliseconds.
disabledbooleanfalseDisables the autocomplete.
classNamestring''Additional CSS classes.