Autocomplete

From thedaviddias/ux-patterns-for-developers · View interactive version

Autocomplete is an AI agent skill from the GitHub repository thedaviddias/ux-patterns-for-developers. Use when implementing suggest options as users type.

How to use this skill

Skill file

Autocomplete

Suggest options as users type

What it solves

Autocomplete helps users quickly find and select values from predefined options as they type.

Autocomplete combines text input flexibility with dropdown-style selection, providing real-time suggestions matching user input. This pattern reduces errors, speeds data entry, and improves form completion.

When to use

When to avoid

Implementation workflow

  1. Confirm the pattern matches the problem and constraints before copying the example.
  2. Start from the anatomy and examples in references/pattern.md, then choose the smallest viable variation.
  3. Apply accessibility, performance, and interaction guardrails before layering visual polish.
  4. Use the testing guidance to verify behavior across keyboard, screen reader, responsive, and failure scenarios.

Accessibility guardrails

Related patterns


For full implementation detail, examples, and testing notes, see references/pattern.md.

Pattern page: https://uxpatterns.dev/patterns/forms/autocomplete

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.