LaviKatiyar

Activity Stats Card

Dashboards 111

About

Activity Stats Card A visually polished card component to display a key metric with an icon, title, and subtext. It features a count-up animation for the primary metric and is built to be easily customized through props.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Activity Stats Card to your project and fits it to your theme.

Code

How Activity Stats Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { StatsCard } from "@/components/ui/activity-stats-card"; // Adjust the import path
import { Activity } from "lucide-react"; // FINAL CORRECTION: Use the 'Activity' icon

export default function StatsCardDemo() {
  return (
    <div className="flex h-full w-full items-center justify-center bg-background p-4">
      <StatsCard
        title="Morning Run"
        metric={4.91}
        metricUnit="K"
        subtext="302 Calories"
        icon={<Activity className="h-6 w-6" />} 
        iconContainerClassName="bg-indigo-500 text-white"
      />
    </div>
  );
}

Dependencies

More by LaviKatiyar

View all
  • Hero Section

    Hero Section

    856
  • Cards

    Cards

    721
  • Service Card

    Service Card

    658
  • Card

    Card

    568
  • Alert Toast

    Alert Toast

    505
  • Bento Grid

    Bento Grid

    442
  • Freelancer Profile Card

    Freelancer Profile Card

    387
  • Referral Card

    Referral Card

    317

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    783
  • Analytics Dashboard

    Analytics Dashboard

    96
  • Creator Dashboard

    Creator Dashboard

    224
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    527
  • Insights Dashboard

    Insights Dashboard

    51
  • serf dashboard

    serf dashboard

    147
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    76