Data
StatCard
Metric display card with icon, trend indicator, and value.
Quick Preview
Total Revenue
$48,295
This month
+12.5%vs last month
Installation
npm install lucide-react
// Copy fromsrc/components/data/StatCard.tsx
Examples
Stats dashboard
Users
12,430
+8%this week
Revenue
$94K
+12%this month
Uptime
99.9%
Stable
Growth
23%
-2%vs target
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title* | string | - | Card label |
value* | string | number | - | Metric value to display |
subtitle | string | - | Secondary text below value |
icon | React.ReactNode | - | Icon displayed in corner badge |
trend | 'up' | 'down' | 'neutral' | - | Trend direction |
trendValue | string | - | Trend percentage or value text |
trendLabel | string | - | Trend context label |
className | string | - | Additional CSS classes |