AutoComplete
An input with suggestion dropdown that filters as you type.
When to Use
- For search inputs with suggestions
- When autocompleting from a known list of options
- For email or URL inputs with common suffix suggestions
Import
Examples
Basic
Custom Filter
API
AutoCompleteProps
options—{ value: string; label?: ReactNode }[]— Suggestion listvalue—string— Input value (controlled)defaultValue—string— Default valueonChange—(value: string) => void— Value change handleronSearch—(value: string) => void— Search input handleronSelect—(value: string, option) => void— Selection handlerfilterOption—(input, option) => boolean— Custom filter logicallowClear—boolean— Show clear buttonplaceholder—string— Placeholder textdisabled—boolean— Disable the inputstatus—"error" | "warning"— Validation status