Skip to content

Autocomplete

Filters a menu or list from a search field as you type.

Design
Engineering
Research
Writing
autocomplete-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Composition

  • Autocomplete
    • SearchField

      Install Search field separately.

    • ListBox

      Install List box separately.

API reference

vip/ui adds or changes the props below. For all other props, see React Aria Autocomplete (opens in a new tab).

filter: (textValue: string, inputValue: string) => boolean
Decides which items match the input. Without it, an item matches when its text contains the input. The default ignores case and accents.