Skip to main content
Select (Deprecated)
@coinbase/cds-web@9.28.0
A Dropdown control for selecting from a list of options.
This component is deprecated. Please use the new Select alpha component instead.
import { Select } from '@coinbase/cds-web/controls/Select'
Peer dependencies
  • framer-motion: ^10.18.0,
  • react-dom: ^18.0.0 || ~19.1.2

Default Composition​

Select can take anything as a child, however, we strongly recommend that you use SelectOption. It has the same API as a ListCell, but with custom styles specific to usage within a Select. SelectOption also comes with a lot of baked in functionality, like keyboard navigation, accessibility properties, and focus behaviors.

Loading...

Value/Label Object Model​

Sometimes you may want to surface a label instead of the select value. You can pass a valueLabel prop with the currently selected value's corresponding label, which will appear to be the value of the Select.

Loading...

Input Stack Options​

The Select trigger can be customized similar to TextInput. These options are also available for mobile implementations.

Label and Helper Text​

When space is tight, this brings the label inside of the Input. Should be used with a compact SelectOption.

Loading...

Compact​

When space is tight, this brings the label inside of the Input. Should be used with a compact SelectOption.

Loading...

Variants​

Variants can be used to surface positive or negative feedback.

Loading...

Label Variants​

Select supports two label variants: outside (default) and inside. Note that the compact prop, when set to true, will override label variant preference.

Warning

When using the inside label variant, you should always include a placeholder prop.

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.