Feature Library

Combobox and multi-select

Not measured yet
Still
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

  1. Selecting records in a form
  2. Choosing ordered layers, steps or tags
  3. Searching a remote catalogue
  4. Picking one value from a long list

Pitfalls, in brief

  1. Supply stable IDs across remote replies.
  2. Import both stylesheets.
  3. 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.
  4. Remote sources receive an AbortSignal.
  5. Plates fold after two lines: the earliest go behind a "+3" plate and the newest stay in view.
1 more in brief
  1. 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.

comboboxmulti-selectautocompletechipsvirtual listasynckeyboardtouchrtlpopoverreduced motionno dependencies

Near it in the frame