Skip to content
GitHub

Card

Displays a card with header, content, and footer.

Login to your account
Enter your email and check your inbox

Installation

Usage

Title and Description

<CardHeader /> supports two usage patterns:

Using props

Pass title and description props directly to <CardHeader />.

This approach does not require <CardTitle /> or <CardDescription /> components.

Using components

Alternatively, use <CardTitle /> and <CardDescription /> as children for more control.

Examples

Product card

A product card with image, title, description, price, and action buttons.

Living room Sofa
This sofa is perfect for modern tropical spaces, baroque inspired spaces.

Icon card

A card with an icon at the top and title, description, and action button at the bottom.

Get 15% OFF
Minimum purchase of $100 required. Use code at checkout.
15OFF

Clickable cards

For fully clickable cards, wrap the card with Link Overlay.

Custom spacing

The [--space:--spacing("value")] utility class controls the card spacing.

Login to your account
Enter your email and check your inbox

Breakpoint utilities change the card spacing at different screen sizes.

API Reference

Card

Root wrapper for card layout. Supports header, body, footer.

CardMedia

Image, video, or media area. Often full-width at top.

CardHeader

Header area. Typically holds title and optional actions.

CardTitle

Card title or heading. Bold by default.

CardDescription

Card description or body text. Muted foreground for hierarchy.

CardAction

Action button or link in the card header.

CardContent

Main body content of the card.

CardFooter

Footer area. Typically holds secondary actions or metadata.