Skip to content
SevenUI
Sign in
On this page

Card

Displays a container with optional header, content, and footer sections.

Project settings
Manage how this project behaves.

Changes apply to every member of the project.

Installation

Bash

Usage

Examples

Login form

CardAction places the “Sign up” button in the header’s top-right corner.

Login to your account
Enter your email below to login to your account

Stats

Compact metric cards using size="sm" with trend badges as header actions.

Total revenue
$1,250.00
+12.5%
Trending up this month
New customers
1,234
-20%
Down from last period

With image

A first-child image renders edge-to-edge with rounded top corners.

Designing with constraints
Why limitations make interfaces better, not worse.
Grids, type scales, and spacing tokens do the heavy lifting so every screen feels like part of the same product.

Settings

Notifications
Choose what you want to hear about.
When someone replies to your thread
When someone mentions you
Summary of activity every Monday

Project

Design system refresh
Due Friday · 8 tasks left
ECJLSR
In progress

API reference

Card

Extends div. The container also handles edge-to-edge images: an img as first or last child gets rounded corners and no padding.

PropTypeDefault
size"default" | "sm""default"

sm tightens the internal spacing for compact cards.

CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter

Structural wrappers extending div. CardHeader switches to a two-column grid when a CardAction is present, placing the action in the top-right corner.

Was this page helpful?