Skip to main content
PortalProvider
@coinbase/cds-web@8.34.1
A component that manages the rendering of portals for overlay components.
Import
import { PortalProvider } from '@coinbase/cds-web/overlays/PortalProvider'
SourceView source codeStorybookView Storybook
Peer dependencies
  • react-dom: ^18.3.1
Related components
View as Markdown

Basic usage

The PortalProvider component is typically used at the root of your application to manage overlay components:

Loading...

Custom Portal Nodes

You can disable the default portal rendering and use the PortalNodes component separately:

Loading...

Toast Example

The PortalProvider's toastBottomOffset prop sets the default bottom offset for all toasts:

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.