The live demo starts when it’s in view.Click the field · type bl or salt ti · arrows move, Enter chooses, Escape closes · click a plate to remove it
Find one or several values among thousands.
Every row has a socket: choosing stamps the next number into it, and the same numbered plate lands in the field, so the order of the choices reads at a glance. Matched letters keep the full ink while the rest of the name steps back, and the list has room for eight rows wherever the field sits.
What it costs a frame
Not measured yet.
What it needs
Renders with
DOM and CSSPlain DOM and CSS: every current browser.
Your browser
Runs hereNo WebGPU needed
Depends on
NothingNo other packages
With an agent
install("combobox")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it up
What it’s for
Selecting records in a form
Choosing ordered layers, steps or tags
Searching a remote catalogue
Picking one value from a long list
Pitfalls, in brief
Supply stable IDs across remote replies.
Import both stylesheets.
The list opens in the top layer (the Popover API), so no scrolling or clipping ancestor cuts it; it keeps its place in the DOM, so it inherits the look.
Remote sources receive an AbortSignal.
Plates fold after two lines: the earliest go behind a "+3" plate and the newest stay in view.
1 more in brief
rank.ts differs from the command palette’s copy: a whole word leads its tier, and fuzzy: "fallback" lists scattered letters only when nothing else matches.
6 pitfalls in full, the hook-up guide, the module source and its tests come with the part.
Where it comes from
Written for the library. Fully custom code.
W3C WAI-ARIA Authoring Practices: Editable combobox with a listbox popup and active descendant.
A small appearance system: colour presets as CSS variables (light, dark, two high-contrast, two accent looks), a “Match system” choice that follows the…