Skip to main content
Banner
@coinbase/cds-web@9.28.0
Displays important messages and actions to users.
import { Banner } from '@coinbase/cds-web/banner/Banner'
Peer dependencies
  • framer-motion: ^10.18.0
Related components

Global Warning Banner​

The global warning banner is used to communicate important alerts or warnings to users across the entire platform, ensuring universal visibility and building trust.

Loading...

In-line Error Banner​

The In-line Error Banner is used to display specific error messages directly beneath the relevant section headers. Use in-line banners to help users identify exactly where the error or outage is located.

Loading...

Contextual Promotional Banner​

The Contextual Promotional Banner is used to highlight special offers, promotions, or announcements within a specific context or section of the platform. It is used to increase user engagement and drive conversions.

Loading...

In-line Informational Banner​

The in-line Informational Banner is used to provide users with additional information or helpful tips directly within the content or interface, providing relevant guidance.

Loading...

Rounded Corner Banners​

You can customize borderRadius to soften contextual and in-line banners.

Loading...
Tip

Avoid setting borderRadius for styleVariant="global" so the vertical status bar remains aligned.

Bleed with Margin Props​

When using negative margin* props to create a bleed effect, explicitly set width so the Banner expands beyond its container.

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.