ZAO造

Combobox

A searchable single choice for a list that needs filtering.

Preview

Su uses the Quiet instrument direction. Use the mode switcher above to see light and dark.

Search by workspace name.
Choose a backup workspace.
Type a name to filter the list. Unmatched names show no matches.

Sizes

Fields together

Region

Edit the fields, then save changes.

Usage

  • Use a combobox when the list is long enough that searching is faster than scanning.
  • Give every option a distinct label. Use Select when the list is short and fixed.
  • A fill highlights the option being navigated. The checkmark identifies the selected value.

API

PropValuesDefault
labelstringrequired
optionsOption[]required
value / defaultValuestring—
onValueChange(value: string | null) => void—
placeholderstring—
disabledbooleanfalse

Example

import { Combobox } from '@zao/react';

<Combobox label="Workspace" options={[{ value: 'north', label: 'North' }]} />

Accessibility

Combobox connects its label, input, popup, and options through Base UI. Arrow keys move through results, Enter selects one, and Escape closes the list. Focus stays on the input with its visible outline while the highlighted option is exposed to assistive technology. Disabled options remain inactive. Highlighting stays visible in forced colors and through closing; reduced motion shows the completed popup immediately.