LaviKatiyar

Conversion Stats Card

Cards 108

About

ConversionStatsCard This card component is designed to display a title, a composite progress bar, and a list of key statistics. It's built to be highly reusable by accepting its data through props.

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

Code

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

Usage.tsx

import { ConversionStatsCard } from "@/components/ui/conversion-stats-card";

// Demo data simulating the provided image
const conversionData = [
  {
    label: "Visitor",
    value: 12565,
    percentage: 75.3,
    change: 2424,
    changeType: "increase" as const, // Use 'as const' for type safety
    color: "bg-emerald-500",
  },
  {
    label: "Product sales",
    value: 1421,
    percentage: 24.7,
    change: 213,
    changeType: "decrease" as const,
    color: "bg-amber-400",
  },
];

export default function ConversionStatsCardDemo() {
  return (
    <div className="flex min-h-[500px] w-full items-center justify-center bg-background p-4">
      <ConversionStatsCard
        title="Conversion Rates"
        data={conversionData}
        onActionClick={() => alert("Action button clicked!")}
        className="shadow-lg"
      />
    </div>
  );
}

Dependencies

More by LaviKatiyar

View all
  • Hero Section

    Hero Section

    807
  • Cards

    Cards

    578
  • Service Card

    Service Card

    555
  • Card

    Card

    510
  • Alert Toast

    Alert Toast

    484
  • Bento Grid

    Bento Grid

    388
  • Freelancer Profile Card

    Freelancer Profile Card

    362
  • Referral Card

    Referral Card

    291

More in Cards

View all
  • Statistics Card 7

    Statistics Card 7

    294
  • Course Design Cards

    Course Design Cards

    1.1K
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    59
  • The Item one

    The Item one

    3
  • Stats cards with links

    Stats cards with links

    81
  • Card

    Card

    56
  • Statistics Card 2

    Statistics Card 2

    268
  • Card Studio

    Card Studio

    5