Skip to main content
ContentCard
@coinbase/cds-web@8.38.5
A flexible, composable card component for displaying rich content with customizable header, body, and footer sections. Use with ContentCardHeader, ContentCardBody, and ContentCardFooter sub-components.
import { ContentCard } from '@coinbase/cds-web/cards/ContentCard'

ContentCard is a flexible, composable card component built with ContentCardHeader, ContentCardBody, and ContentCardFooter sub-components. It can display various content layouts including text, media, and interactive elements.

Basic Examples

ContentCard uses sub-components for flexible layout. Combine ContentCardHeader, ContentCardBody, and ContentCardFooter to create your card structure.

Loading...

Media Placement

Use the mediaPlacement prop on ContentCardBody to control where media is positioned relative to the content.

Loading...

With Background

Apply a background color to the card using the background prop. When using a background, consider using variant="tertiary" on buttons.

Loading...

Pressable Cards

ContentCard does not have a built-in pressable mode. To make the entire card pressable, wrap it in a Pressable component with background, borderRadius, and optionally width props.

Important: When wrapping ContentCard in Pressable, avoid placing additional interactive elements (buttons, links, etc.) inside the card. Nested interactive elements create accessibility issues. If you need actions inside the card, do not wrap the card in Pressable.

Loading...

Rewards Card Example

Example showing a rewards-style content card with claim button.

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.