AutoComplete
This component is currently a Work In Progress (WIP).
The AutoComplete component provides suggestions as the user types.
Playground
Props
Examples
Basic Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
autocomplete | boolean | true | Enables the dropdown suggestions. |
className | string | - | Additional CSS classes. |
defaultValue | string | - | Initial value of the input. |
keys | string[] | - | Keys to search in options object. |
limit | number | - | limits the number of results. |
loading | boolean | false | Shows a loading indicator. |
multiple | boolean | false | Allows selecting multiple options. |
onChange | (option) => void | - | Callback when an option is selected. |
onSearch | (term) => void | - | Callback when search term changes. |
options | AutoCompleteOption[] | [] | Array of options to suggest. |
See also
Last updated on