Card

A flexible card component with support for media, headers, content sections, and footers. Supports both vertical and horizontal layouts with multiple variants.

View Markdown

Basic

Product displayed on a desk with notebook and fruit

Product Name

This is a description of the product.

Horizontal Layout

Grid of user avatars

User Profile

Member since 2024. Active contributor to the community.

Split Layout

Open book on a wooden table

Article Title

This is a longer description that provides context about the article content. Perfect for blog posts or news items.

Grid Stats

Dashboard Overview

Total Sales

$12,345

Orders

234

Customers

1,234

Revenue

$45,678

Multi-Section

Event Details

Annual Company Meetup

Date:
March 15, 2024
Location:
San Francisco, CA
Attendees:
150 people

Custom Heading Level

Page Title Card

Using h2 instead of the default h3.

Variants

Default

Outline

Elevated

API Reference

CardRoot

Root container for the card. Renders as an <article> element.

PropTypeDefaultDescription
variant'default' | 'outline' | 'elevated''default'Visual style variant of the card
classNamestring-Additional CSS classes
...propsReact.ComponentProps<"article">-Standard article element props

CardTitle

The card heading. Renders as an <h3> by default.

PropTypeDefaultDescription
as'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6''h3'The heading level to render
classNamestring-Additional CSS classes
...propsReact.ComponentProps<"h3">-Standard heading element props

CardMedia, CardHeader, CardDescription, CardContent, CardSection, CardFooter

Layout sub-components for structuring card content. Each accepts className and standard HTML element props.

PropTypeDefaultDescription
classNamestring-Additional CSS classes
...propsReact.ComponentProps<"div" | "header" | "p" | "section" | "footer">-Standard HTML element props for the respective element