About
A compact statistic card for dashboards that shows a title, a numeric value, and a change indicator with an up/down/neutral trend icon.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Dashboard Stat Card to your project and fits it to your theme.
Code
How Dashboard Stat Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Stat1 from "@/components/ui/dashboard-stat-1";
export default function Stat1Demo() {
return (
<div className="grid w-full max-w-3xl grid-cols-1 gap-4 sm:grid-cols-3">
<Stat1
title="Total Logs"
value="12,480"
changeValue="+12.4%"
direction="up"
/>
<Stat1
title="Error Rate"
value="1.2%"
changeValue="-0.4%"
direction="down"
/>
<Stat1
title="Active Sessions"
value="3,021"
changeValue="0.0%"
direction="neutral"
/>
</div>
);
}
















