Agentic Design System
v3.5.0

Components · Forms · Autocomplete

Back to Autocomplete types

Autocomplete

Owner: Design System Team · Version: v3.5.0

Use for a text field that needs to suggest matching options as the user types, like a city search - the user can pick a suggestion from the panel or keep typing a free-form value.

Properties

Size, corner radius, label and placeholder are properties of the same component, not separate fields - change them below to check this field's style and states in the Live Preview.

Size
Corner radius
Allow clear
Required
Supporting text

Live Preview

Both types compared side by side, each in all 10 states. One full matrix is rendered per selected combination of Size and Corner radius - check more than one option in a dropdown to see every combination side by side.

When to use

Any form field that should suggest matching options as the user types instead of requiring a fully free-form value or a closed, no-typing picker.

City search Tag picker Product lookup Contact search Command input

Validation

Autocomplete's suggestions are fetched, not static, so its validation contract covers the dropdown's async states as well as whether a typed value has to match the list.

Component Guide

Overview

Autocomplete is a text field that shows a live list of matching suggestions as the user types, while still accepting a free-form value the user keeps typing past the suggestions - a hybrid between Input's free text and Select's closed option list.

When to Use

  • A search-like field with known likely values - a city search, a product lookup.
  • Picking from a large option set faster by typing - a tag picker, a contact search.
  • A command or query input - where suggestions speed up entry but a fully custom value is still valid.

When Not to Use

  • The value must be one of a small, fixed set with no free text allowed - use Select instead so an invalid value can't be submitted.
  • There's no meaningful suggestion source - a plain Input is simpler when there's nothing useful to suggest.
  • Hierarchical, drill-down data - use Cascader or Tree Select rather than a flat suggestion list.

Best Practices

  • Debounce suggestion lookups so fast typing doesn't spam a search on every keystroke.
  • Highlight the matched portion of each suggestion so it's clear why it appeared.
  • Always allow submitting the typed value even if the user never selects a suggestion, unless the field truly requires a match.

Do and Don't

Do

Manchester
Manila
Mannheim

A short list of real matches narrowed by what has been typed, so choosing is faster than finishing the word.

Don't

Aberdeen
Adelaide
Albuquerque

Suggestions that ignore the query are noise the user has to read past. If nothing matches, say so instead of listing the top of the list.

Accessibility

  • Implemented with combobox semantics, so the suggestion list is announced and arrow keys move through it without leaving the input.
  • The number of available suggestions is announced as they update, so screen-reader users know the list changed.
  • Selecting a suggestion with Enter or click produces the same result, and Escape closes the list without clearing typed text.

Related Components

Select, Mention, Input, Cascader.