Skip to content
GitHub

Combobox

Searchable select for filtering and choosing options.

Installation

Usage

Controlled

Control the selected value with inputValue and onValueChange props.

Selected: banana

Size

Small

Medium

Large

State

Invalid

Disabled

Examples

Auto highlight

Automatically highlight the first matching item as the user types by setting inputBehavior="autohighlight".

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. Use with useListCollection and useFilter for filtering.

ComboboxControl

Optional wrapper for custom layouts. Use ComboboxInput for the standard input-with-trigger layout.

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.