ortaui

Combobox

Base UI Combobox: a pill input with a chevron and optional clear, a Select-style popup with the sliding highlight and a check, single or multiple (chips). Surface-aware.

Installation#

npx shadcn add @ortaui/combobox

Examples#

Single#

Grouped#

Input inside the popup#

Multiple (chips)#

Disabled and invalid#

On a surface#

API reference#

PropTypeDefaultDescription
surface"default" | "raised"autoLook on a panel. Unset: raised (page fill + border) inside any [data-surface] container. "raised" forces it anywhere; "default" keeps the muted fill even inside a surface.
itemsT[] | { value, items }[]-Root: items to filter and render (flat or grouped).
multipleboolean-Root: several values. Use ComboboxChips, ComboboxChip and ComboboxChipsInput.
value / defaultValue / onValueChangeT | T[]-Controlled or uncontrolled value (Base UI).
showTrigger / showClearbooleantrue / falseComboboxInput: chevron and clear buttons.
anchorRefObject-ComboboxContent: position against the chips field; get the ref from useComboboxAnchor().