UI.MD

Search documentation

Search for components, guides, and tokens

Card

A container with header, content, and footer sections. Includes dashboard and metric card variants.

Installation

$
npx shadcn@latest add https://ui.mattdowney.com/r/card.json

Usage

import { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter } from "@/components/ui/card"

Examples

Default

Notifications
Configure how you receive notifications.

Choose which notifications you'd like to receive and how they're delivered.

With Header Border

Add border-b to CardHeader to separate the header from content.

Notifications
Configure how you receive notifications.

Choose which notifications you'd like to receive and how they're delivered.

With Form

Card wrapping form inputs: shows Card, Input, and Button working together.

Create project
Deploy your new project in one click.

With Action

CardAction places a control in the top-right of the header.

Team Members
Manage your team and permissions.
JD

Jane Doe

jane@example.com

Admin
AS

Alex Smith

alex@example.com

Member

With Rows

CardRow creates a bordered list layout for settings or navigation.

Settings
Manage your account preferences.

Notifications

Push and email alerts

Security

Password and 2FA

Language

English (US)

Compact Header

DashboardCardHeader + MetricCardValue for data display cards.

Weekly Steps
47,291
Goal: 50,000 steps2709 to go

Table Header

CardTableHeader adds column labels that align with grid rows below.

api-serverHealthy99.9%
web-appHealthy99.7%
workerDegraded97.2%