Autocomplete

A text field with suggestions; any text is a valid value.
Stable
Web
iOS
Android
@advui/core
Source

Basic

Pick a suggestion or type any city.

Installation

pnpm
pnpm add @advui/core
npm
npm install @advui/core

Usage

import { Autocomplete, Field } from '@advui/core'

<Field label="City">
  <Autocomplete options={suggestions} value={city} onValueChange={setCity} />
</Field>

API reference

Autocomplete

Takes Combobox’s `options`, `filter`, `placeholder`, `size` and states.
PropTypeDefaultDescription
valuestring—The text, when you control it.
defaultValuestring—The text at first, when the field manages it.
onValueChange(value: string) => void—Called as the text changes and when a suggestion is picked.
optionsComboboxOption[]—Suggestions. Pass new ones as the text changes to load them.
emptyTextstring | nullnullBy default the list hides when nothing matches.

Accessibility

  • The same combobox pattern as Combobox; picking a suggestion fills the text, and Escape closes the list without changing it.
  • A click or tap on the field shows the suggestions that match its text; Tab focus does not.
Keyboard interactions
KeyAction
ArrowDown / ArrowUpMoves through the suggestions.
EnterFills in the highlighted suggestion.
EscapeCloses the suggestions.

Platform notes

iOS
Opens a bottom sheet where the text is typed, with the suggestions under it.
Android
Opens a bottom sheet; the back button closes it and keeps the text.
Since v0.5.0Last updated Nov 2, 2026Edit this page on GitHub