Combobox

Also called autocomplete, typeahead, or searchable select

A text field with a dropdown list that filters as you type, so people can pick one option from a long list quickly.

What is Combobox?

A combobox pairs an input with a list of options. As you type, the list narrows to the matches, often with the matching letters in bold. Arrow keys move through the results, Enter or a click picks one, and the field then shows the chosen value.

Use it when a plain select would be too long to scroll, such as countries, cities, time zones, or teammates. With fewer than about seven options, a select or radio buttons are quicker. Decide whether people may enter a value that is not in the list, like a new tag, and make that clear.

Filter on every keystroke for short local lists. When results come from a server, debounce requests by about 150 to 300ms and show a loading state. Follow the ARIA combobox pattern, with role='combobox', aria-expanded, and aria-activedescendant, so screen readers announce the highlighted option. The native <datalist> element gives a basic version with no script, though its list can't be styled.

Often confused with

Dropdown menu
A dropdown menu runs an action when you pick an item. A combobox fills in a value for a field and lets you type to filter.
Command palette
A command palette searches every action in the app. A combobox searches the options for one field.
All terms

Debounce

A technique that waits for a short pause in typing or other repeated events, then runs the work once instead of on every keystroke.

Tag input

A text field where each word you type becomes a removable chip when you press Enter or a comma, for adding labels, emails, or keywords.

Command palette

A search box that opens with a shortcut like ⌘K and lets you find and run any command or page by typing a few letters.

Inline validation

Form checking that happens right next to each field as you fill it in, showing an error or a checkmark before you press Submit.