← ui-lab

Typeahead Listbox

A single-select listbox you can navigate by typing. Focus it and press a letter to jump to the next option starting with that letter (repeat to cycle through matches); Arrow keys and Home/End move too. The active option is tracked with aria-activedescendant and marked aria-selected.

Preview

  • Apple
  • Apricot
  • Banana
  • Cherry
  • Cranberry
  • Date

Installation

npx shadcn@latest add https://ui.publictheta.com/r/typeahead-listbox.json

Conformance

This component conforms to the @publictheta/ui-spec typeahead-listbox specification. Run the suite against any implementation with pnpm conformance.