Skip to main content
Toast
@coinbase/cds-web@8.34.1
A temporary notification that appears at the bottom of the screen.
Import
import { Toast } from '@coinbase/cds-web/overlays/Toast'
SourceView source codeStorybookView StorybookFigmaView Figma (internal only)
Peer dependencies
  • framer-motion: ^10.18.0
Related components
View as Markdown

Get Started

  1. Add PortalProvider to the root of your app if it doesn't exist.
  2. Import the useToast hook: import { useToast } from '@coinbase/cds-web/overlays/useToast';
  3. Show a toast
const toast = useToast();
toast.show('Copied to clipboard');

Basic Example

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.