logo

Card

A flexible card component with headers, actions, and content slots.

Preview

Small Card

This card uses the small size variant.

The card component supports a size prop that can be set to "sm" for a more compact appearance.

Usage

Loading...

Examples

Each section shows a single card pattern.

Basic

A minimal card with title, description, and body content.

Basic Card

Simple card with title and description

This is a minimal card component with essential elements.

Small

Compact spacing using size="sm" and a full-width action button.

Small Card

Compact variant

Uses the small size variant for tighter spacing.

Header Action

Use CardAction to place controls alongside the header content.

Weekly Report

Performance highlights

Engagement up 12% with 3.4% CTR across campaigns.

Media

Add a media block above the header for richer cards.

Design Sprint

Workshop toolkit

Ready-to-run agenda with templates and exercises for alignment.

API Reference

The Card components render semantic elements with div, h3, and p tags.

PropTypeDefaultDescription
size"sm" | "md" | "lg""md"Controls card spacing and typography.
classNamestringundefinedAdd custom classes to any card slot.
childrenReactNodeundefinedContent of the slot component.
aria-labelstringundefinedAccessible label for actions when needed.