Premium

Autocomplete Search (debounce + keyboard + outside click)

By FrontendAtlas Editorial · Updated Jan 30, 2026

Challenge summary

Build a Vue 3 autocomplete search input. It should debounce queries, show a dropdown with results, support keyboard navigation (↑/↓/Enter/Esc), and close on outside click.

What you'll practice

  • Render the autocomplete UI as the main component.
  • If query is empty (after trim): close dropdown and clear results.
  • If query is non-empty: open dropdown and show results.
  • Show up to 8 results.
  • Keyboard support: ArrowUp/ArrowDown to move active option, Enter to select, Esc to close.

What Premium unlocks

Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.

Free related practice

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.