Magoo Component UI logo Magoo Component UI
← Catalog

Autocomplete Panel

autocomplete-panel organism experimental

A search input with a floating popover of grouped, iconed suggestions that opens on focus and typing.

Also in: FormsOverlays

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
query string
placeholder string
groups array ✓
start_open boolean

Related components

How to use

A vanilla-JS typeahead popover. The panel is an absolutely positioned surface hidden with invisible/opacity-0/pointer-events-none and revealed by group-data-[open=true] when the root's data-open flips true. behavior.js opens it on focus and input, closes it on Escape or an outside click, and on clicking a suggestion fills the input and fires suggest:pick with the chosen { label }. Screenshots use start_open to show the open state without JS.

Use cases

forminputoverlay WCAG AA SEO 15 dir: both ai-generated