Skip to content

Combobox

Type to filter a list, pick with keyboard or pointer. Values come from the list only — free text reverts on blur. A hidden input carries the form value.

Example

<Combobox
  id="ship-to"
  label="Ship to"
  name="ship-to"
  options={["Ada Lovelace", { value: "gk", label: "Grace Hopper" }, "Alan Turing"]}
/>

Props

PropTypeDefaultDescription
idstring-Input id; label targets it.
labelstring-Visible label and clear-button name.
namestringidHidden input form name.
optionsArray<string | { value; label; disabled? }>-Selectable items.
valuestring""Preselected option value.
placeholderstring-Input placeholder.
classstring-Style passthrough.
Plus the Field API (hint, error, required, disabled).

Accessibility