Skip to content

Combobox

Displays a searchable list of options.

Installation

Anatomy

Usage

Controlled

Control the selected value with inputValue and onValueChange props.

Selected: banana

Size

Small

Medium

Large

States

Invalid

Disabled

Examples

Auto highlight

Automatically highlight the first matching item as the user types.

Group

With Field

Use Combobox with Field components to style the combobox with the field components.

We'll use this for shipping estimates

With scroll

Multiple

Enable multiple selection by setting the multiple prop to Combobox.

With clear button

Pass showClear to ComboboxInput to show a clear button.

With start icon

API Reference

Combobox

Root component.

ComboboxControl

Optional wrapper for custom layouts.

ComboboxInput

Input with dropdown trigger and optional clear button. Combines search and selection.

ComboboxTrigger

Opens the dropdown on click.

ComboboxClear

Button to clear the input value.

ComboboxContent

Holds the dropdown options. Displayed in a portal.

ComboboxList

Wraps the list of options. Use with collection.

ComboboxItem

A single selectable option.

ComboboxGroup

Groups related options under an optional heading.

ComboboxGroupLabel

Label for an option group.

ComboboxEmpty

Shown when no options match the current filter. Use for empty state.


For a complete list of props, see the Ark UI documentation.