Skip to main content
Modal
@coinbase/cds-web@8.38.5
A component that displays content in a window that requires user interaction.
import { Modal } from '@coinbase/cds-web/overlays/modal/Modal'
Peer dependencies
  • framer-motion: ^10.18.0

Basic example

Loading...

Portal Modal

This approach is deprecated

Use the visible and onRequestClose props as outlined above

Loading...

Chained Modals

Accessibility tip

For chained modals, set restoreFocusOnUnmount={false} on each one and return focus to the opener when exiting the chain (e.g., triggerRef.current?.focus()) to keep tab order predictable.

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.