Skip to Content
EnComponentsNot ReadyAuto complete

AutoComplete

This component is currently a Work In Progress (WIP).

The AutoComplete component provides suggestions as the user types.

Playground

Props

Examples

Basic Usage

  • Option 1
  • Option 2

Props

PropTypeDefaultDescription
autocompletebooleantrueEnables the dropdown suggestions.
classNamestring-Additional CSS classes.
defaultValuestring-Initial value of the input.
keysstring[]-Keys to search in options object.
limitnumber-limits the number of results.
loadingbooleanfalseShows a loading indicator.
multiplebooleanfalseAllows selecting multiple options.
onChange(option) => void-Callback when an option is selected.
onSearch(term) => void-Callback when search term changes.
optionsAutoCompleteOption[][]Array of options to suggest.

See also

Last updated on