Stats Cards

PreviousNext

Display key metrics and performance indicators with Tailwind CSS stats cards. These layouts use clean typography, icons, and visual cues to make data easily digestible. Perfect for SaaS platforms, admin panels, and analytics dashboards seeking a modern, organized, and visually appealing way to showcase statistics.

Docs
bunduicomponent

Preview

Loading preview…
examples/blocks/dashboard-ui/stat-cards/04/page.tsx
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";

export default function CardStat() {
  return (
    <div className="mx-auto p-4 md:w-[400px] lg:py-10">
      <Card>
        <CardHeader>
          <CardTitle>Sales Overview</CardTitle>
          <CardDescription>
            <span className="text-green-600">+20.1%</span> from last month
          </CardDescription>
        </CardHeader>
        <CardContent className="space-y-4">
          <div className="text-2xl font-bold">$42.5k</div>
          <div className="grid grid-cols-2 gap-4">
            <div className="flex items-center gap-2 text-sm">
              <div className="bg-muted rounded-md px-2 py-1 text-center text-xs">62.2%</div>
              <span className="text-sm">Orders</span>
            </div>
            <div className="flex items-center justify-end gap-2 text-sm">
              <div className="bg-muted rounded-md px-2 py-1 text-center text-xs">25.5%</div>
              <span className="text-sm">Visits</span>
            </div>
          </div>
          <div className="flex overflow-hidden rounded-lg">
            <span className="h-4 bg-lime-400 dark:bg-lime-700" style={{ width: "70%" }}></span>
            <span className="h-4 bg-indigo-400 dark:bg-indigo-700" style={{ width: "30%" }}></span>
          </div>
        </CardContent>
      </Card>
    </div>
  );
}

Installation

npx shadcn@latest add @bundui/stat-cards-04

Usage

import { StatCards04 } from "@/components/stat-cards-04"
<StatCards04 />