Bento Stat Card
Bento stat card displaying a metric label, large tabular number, and green trend indicator. Dashboard KPI tile for analytics products, admin panels, and startup homepages. Dark zinc ring-bordered design.
Dependencies
react
npm install react react-domexport function BentoStatCard() {
return (
<div className="rounded-2xl bg-zinc-900 p-6 text-white ring-1 ring-zinc-800">
<p className="text-xs uppercase tracking-wider text-zinc-500">Active users</p>
<p className="mt-2 text-4xl font-bold tabular-nums">48,291</p>
<p className="mt-2 text-sm text-emerald-400">↑ 12.4% vs last month</p>
</div>
);
}
Please implement this code in the current project and add it to (Your Desired Section, e.g. homepage hero, pricing page, dashboard). Change the primary accent color to (YOUR HEX CODE COLOR, e.g. #6366F1).
Requirements:
- Use React + Tailwind CSS (match the project's existing setup)
- Install dependencies if needed: npm install react react-dom
- Keep the layout responsive on mobile and desktop
- Replace placeholder copy with content that fits the project
The UI code:
export function BentoStatCard() {
return (
<div className="rounded-2xl bg-zinc-900 p-6 text-white ring-1 ring-zinc-800">
<p className="text-xs uppercase tracking-wider text-zinc-500">Active users</p>
<p className="mt-2 text-4xl font-bold tabular-nums">48,291</p>
<p className="mt-2 text-sm text-emerald-400">↑ 12.4% vs last month</p>
</div>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.