Skip to content
Playground

Combobox

Search and select one or more values from a collection.

Search and select one or more values from a collection.

Backed by Base UI Combobox for upstream behavior and configuration. Zenos owns the public API, styling, and composition shown on this page.

Use a standalone trigger when the selected value should remain separate from filtering. The popup places a padded, borderless search row (with a magnifying-glass icon) above the result list, following the Argus selection pattern. List options use the same styling as Autocomplete.

Combobox.Root
├── Combobox.InputGroup
│   ├── Combobox.Input
│   ├── Combobox.Clear
│   └── Combobox.Trigger
└── Combobox.Content
  ├── Combobox.Empty
  ├── Combobox.List
  │   ├── Combobox.Group
  │   ├── Combobox.Item
  │   └── Combobox.Separator
  └── Combobox.Status
TSX
import { Combobox } from "@zentara-co/zenos-ui";

Combobox.InputGroup uses the shared sm, md, and lg control scale from Input.

Choose a surface that matches the field hierarchy. default, filled, and none match Input. Standalone Combobox.Trigger (popup search) uses the same variants when it is not nested in Combobox.InputGroup.

Compose with Field for shared label, description, and error semantics. Hover, focus, invalid, and disabled treatments follow the Input spec: the input group (or standalone trigger) owns the 2px focused border and pressed background—no inner focus ring on the text field, clear, or trigger affordances. Popup search rows keep a bottom border only.

Use value and onValueChange when selection belongs to application state. defaultValue provides the uncontrolled equivalent.

Selected team: Engineering

Combobox.Content uses the fast popup motion rhythm: it fades, scales, and moves from the resolved placement on open, then reverses on close. Reduced-motion preferences remove the animation automatically.

Open both fields. The first popup animates in and out. disableMotion makes the second appear and disappear immediately.

Multiple selection uses chips to keep chosen values visible and individually removable while the input remains searchable.

2 teams selected

Load results when the input changes instead of fetching the entire collection upfront. Keep search text (inputValue) separate from selection (value), and use filter={null} when the server already filters results—including matches on email addresses or roles rather than just display names.

This example waits 250 ms before starting a simulated request, cancels superseded requests with AbortController, and ignores aborted responses. It searches only while the popup is open and the query has at least two characters. Loading, errors, and empty results are announced with Combobox.Status; requests never run just because a selected person’s name fills the input.

Simulated remote directory. Type “error” to preview a failed request.

Selected reviewer: None

Replace searchDirectory with your application’s API call, passing its signal to fetch. Keep the selected object in items, use itemToStringLabel for its display name, itemToStringValue for native form submission, and isItemEqualToValue to compare stable IDs across new responses. Fetching belongs to the consuming feature, not the core Combobox.

Add multiple, control selection as an array, and render removable chips through Combobox.Value. Merge selected people into each new result collection without duplicate IDs so changing the query, loading another result set, or encountering an error does not discard earlier selections. Selecting a person clears the search text. Remove chips individually without losing the other selections; closing the popup also clears the multiple-select query through Base UI’s normal input behavior.

Search by name, email, or role. Selected reviewers remain available across searches.

Selected reviewers: None

Both examples use a deterministic, simulated directory rather than a live service. Search for a name such as “Ana”, a role such as “engineer”, an unknown name for an empty response, or “error” for a failed request. Change the query to recover. Clearing the input, closing the popup, and unmounting cancel pending work; aria-busy marks the input and popup while loading.

Group related results, expose filtering status, and leave unavailable values visible when that context helps users understand the collection.

Combobox.Root
Combobox.Trigger
Combobox.Value
Combobox.Content
Combobox.Input
Combobox.List
Combobox.Item
Combobox.Empty
Combobox.Group
Combobox.GroupLabel
Combobox.Separator
Combobox.Status
Combobox.Chips
Combobox.Chip
Combobox.ChipRemove

API

PropTypeDefaultDescription
value ItemValue | ItemValue[] | null — Controlled selection.
defaultValue ItemValue | ItemValue[] — Initial uncontrolled selection.
onValueChange (value) => void — Runs when selection changes.
multiple boolean false Enables multiple selection.
items ItemValue[] — Items available for filtering.
inputValue / onInputValueChange string / (value, details) => void — Controls search text independently of selection. Use input changes to load async results in the consuming feature.
filter function | null — Set to null to disable local filtering when a remote service already filters results.
itemToStringLabel / itemToStringValue (item) => string — Maps object values to display labels and native form values respectively.
isItemEqualToValue (item, value) => boolean — Compares stable IDs so refreshed async objects retain their selected state.
disabled boolean false Disables selection and input interaction.
name string — Name used for native form submission.
open / defaultOpen / onOpenChange controlled state props — Controls popup visibility.
size (InputGroup / Input / Trigger) 'sm' | 'md' | 'lg' md Control height for the input group shell and nested input.
variant (InputGroup / Trigger) 'default' | 'filled' | 'none' default Input group or standalone trigger surface treatment.
side / align (Content) Base UI position values bottom / start Popup placement relative to its anchor.
Content.disableMotion boolean false Disables the popup enter and exit animation for this instance.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Give the input an accessible label through Field.Label, Combobox.Label, or aria-label. Base UI manages the input’s active descendant, listbox relationship, selection announcements, and focus. Arrow keys move through results, Enter selects the active result, Escape closes the popup without losing input focus, and removable chips expose named buttons.