Skip to content

Card

Displays content about a single subject.

Login to your account
Enter your email and check your inbox

Installation

Anatomy

Usage

Title & 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

Use CardTitle and CardDescription as children for more control.

Examples

Product card

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

Icon card

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

Custom spacing

The [--space:--spacing("value")] on Card controls the internal spacing.

Default spacing is --spacing(6).

Login to your account
Enter your email and check your inbox

You can use breakpoint utilities to change the internal spacing at different screen sizes.

API Reference

Card

Root wrapper for card layout.

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.