Card
Container, Stats Card (KPI), Info Card, Action Card, List Card, User Card, Alert Card, Progress Card, Feature Card, and Product Card (image on top) for ecommerce and catalogs.
Basic Card
Card content.
Simple Info Card
You have 12 pending invoices
System maintenance scheduled at 2 AM
New feature released
Action Card
Create New Order
Start a new order from scratch
Add Product
Add a new product to the catalog
Invite Team Member
Send an invitation to join the team
Generate Report
Export data as a report
List Card
Recent Orders
View All- $45
Order #2841
2 items · $45.00
- $13
Order #2840
1 item · $12.99
- $90
Order #2839
3 items · $89.50
Latest Transactions
View All- +$120
Payment received
Stripe · 2 min ago
- −$25
Refund processed
PayPal · 1 hr ago
- +$29
Subscription renewed
Stripe · 2 hrs ago
Top Products
View All- 124 sold
Wireless Earbuds
Electronics
- 89 sold
Leather Wallet
Accessories
- 56 sold
Desk Lamp
Office
Recent Activities
View All- Just now
New user signed up
john@example.com
- 5 min ago
Order shipped
Order #2840
- 1 hr ago
Report generated
Sales Q1
Profile / User Card
Jane Doe
jane@company.com
Mike Kim
Designer
Alex Lee
alex@customer.com · Acme Inc.
Notification / Alert Card
Payment failed
Your card was declined. Please update your payment method.
Backup completed
Your data was successfully backed up at 2:30 AM.
Subscription expiring soon
Your plan renews in 5 days. Update billing to avoid interruption.
New feature available
Check out the new analytics dashboard in Settings.
Progress Card
Project progress
70%Storage used
45%Monthly target
82%Feature Card
Product Card (Image Top)
Wireless Earbuds Pro
Noise-cancelling, 24h battery
Desk Organizer Set
Bamboo, 5 pieces
Stats Card (KPI)
Revenue
$24,500
Orders
1,245
New Users
320
Conversion Rate
3.2%
How to use
Card, StatsCard, InfoCard, ActionCard, ListCard, UserCard, AlertCard, ProgressCard, FeatureCard, ProductCard. Copy the examples below.
1. Import
import {
Card,
StatsCard,
InfoCard,
ActionCard,
ListCard,
UserCard,
AlertCard,
ProgressCard,
FeatureCard,
ProductCard,
Avatar,
Button,
IconButton,
Badge,
} from "@/app/components/ui";
import { FileText, Plus, DollarSign, CheckCircle, Package, Percent, XCircle, AlertTriangle, Info } from "lucide-react";2. Card
<Card className="max-w-xs">
<p className="text-sm text-gray-700 dark:text-gray-300">Card content.</p>
</Card>3. StatsCard
<StatsCard
title="Revenue"
value="$24,500"
change="+12%"
trend="up"
icon={<DollarSign className="w-4 h-4" />}
/>
<StatsCard
title="Conversion Rate"
value="3.2%"
icon={<Percent className="w-4 h-4" />}
/>4. InfoCard
<InfoCard icon={<FileText className="w-4 h-4" />}>
You have 12 pending invoices
</InfoCard>5. ActionCard
<ActionCard
title="Create New Order"
description="Start a new order from scratch"
primaryAction={{ label: "Create order" }}
icon={<Plus className="w-4 h-4" />}
/>6. ListCard
<ListCard
title="Recent Orders"
viewAll={{ href: "#" }}
items={[
<div key="1">Order #2841 · $45.00</div>,
<div key="2">Order #2840 · $12.99</div>,
]}
/>7. UserCard
<UserCard
avatar={<Avatar size="lg">JD</Avatar>}
name="Jane Doe"
roleOrEmail="jane@company.com"
actions={<Button variant="secondary" className="!py-1.5 !min-h-0 text-xs">View profile</Button>}
/>8. AlertCard
<AlertCard
variant="error"
title="Payment failed"
description="Your card was declined. Please update your payment method."
icon={<XCircle className="w-5 h-5" />}
/>
<AlertCard variant="success" title="Backup completed" description="Done." icon={<CheckCircle className="w-5 h-5" />} />
<AlertCard variant="warning" title="Expiring soon" description="Renews in 5 days." icon={<AlertTriangle className="w-5 h-5" />} />
<AlertCard variant="info" title="New feature" description="Check Settings." icon={<Info className="w-5 h-5" />} />9. ProgressCard
<ProgressCard title="Project progress" value={70} />
<ProgressCard title="Storage used" value={45} variant="info" />
<ProgressCard title="Monthly target" value={82} variant="success" />10. FeatureCard
<FeatureCard
icon={<Package className="w-5 h-5" />}
title="Inventory Management"
description="Track stock levels and reorder points in real time."
cta={{ label: "Learn more", href: "#" }}
/>11. ProductCard
<ProductCard
image={<div className="h-full w-full bg-gray-200 dark:bg-gray-600 flex items-center justify-center"><Package className="w-12 h-12" /></div>}
title="Wireless Earbuds Pro"
description="Noise-cancelling, 24h battery"
price="$89.00"
compareAtPrice="$119.00"
href="#"
action={{ label: "Add to cart", onClick: () => {} }}
badge={<Badge variant="default">Sale</Badge>}
/>