Magoo Component UI logo Magoo Component UI
← Catalog

Combobox

combobox molecule experimental

A typeahead select whose text input filters a keyboard-navigable listbox of options.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Open

Props

NameTypeReq
options array ✓
placeholder string
label string
name string
start_open boolean

Related components

How to use

A vanilla-JS typeahead: input events filter options by label (non-matches get data-hidden), the list opens on focus/typing, and full keyboard support moves a data-active highlight over the visible options with ArrowUp/ArrowDown (tracked by aria-activedescendant), selects with Enter, and closes with Escape or an outside click.

Use cases

forminput WCAG AA SEO 15 dir: both ai-generated