Skip to main content
Dropdown
@coinbase/cds-web@9.28.0
An overlay that opens and closes.
This component is deprecated. Please use PopoverPanel instead.
import { Dropdown } from '@coinbase/cds-web/dropdown/Dropdown'
Peer dependencies
  • framer-motion: ^10.18.0,
  • react-dom: ^18.0.0 || ~19.1.2
Related components

Usage​

A Dropdown wraps a subject which when interacted with will toggle the visibility of an elevated surface called a menu.

Warning

The width must be at least as large as the content prop's width, or the Dropdown may have issues in Safari.

Mobile​

Dropdown is a web only component. If you like to use a “Dropdown” like feature on Mobile, please use Tray instead.

Basic Dropdown​

Dropdown menus can show an scrim below the menu, overlaying all other content on the screen when passed showOverlay.

Dropdown can render as a Modal on mobile web if passed enableMobileModal.

Loading...

Control a Dropdown Programmatically​

You can control the visibility of a Dropdown menu programmatically using the exposed openMenu and closeMenu methods on a Dropdown's ref.

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.