Skip to main content
Combobox
@coinbase/cds-web@9.0.2
A flexible combobox component for both single and multi-selection, built for web applications with comprehensive accessibility support.
Alpha componentAlpha components are stable and safe to use. They allow us to provide new and powerful features quickly, without forcing breaking changes. Components will exit the alpha status when their deprecated counterpart is removed in the next major version.
import { Combobox } from '@coinbase/cds-web/alpha/combobox'
Peer dependencies
  • framer-motion: ^10.18.0,
  • react-dom: ^18.0.0 || ~19.1.2
Related components

Basics​

To start, you can provide a label, an array of options, control state.

Loading...

Multiple Selections​

You can also allow users to select multiple options with type="multi".

Loading...

We use fuse.js for fuzzy search by default. You can override with filterFunction.

Loading...

Grouped​

Display options under headers using label and options. Sort options by the same dimension you group by.

Loading...

Accessibility​

Use accessibility labels to provide clear control and dropdown context. For multi-select, add remove and hidden-selection labels so screen readers can describe chip actions and +X summaries.

Loading...

Styling​

Selection Display Limit​

Cap visible chips with maxSelectedOptionsToShow; the rest show as +X more. Pair with hiddenSelectedOptionsLabel for screen readers.

Loading...

Alignment​

Align selected values with the align prop.

Loading...

Borderless​

Remove the border with bordered={false}.

Loading...

Compact​

Use smaller sizing with compact.

Loading...

Helper Text​

Add guidance with helperText.

Loading...

Composed Examples​

Country Selection​

You can include flag emoji in labels to create a country selector.

Loading...

Free Solo​

You can add a dynamic option to Combobox to enable free solo where users can provide their own value.

Loading...

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.