Kavi Katiyar

Performance Benchmark Card

Cards 407

About

Performance Benchmark Card This component provides a comprehensive view of a key metric against benchmarks and competitors. It's designed to be highly reusable, allowing you to feed it any data structure for titles, values, competitors, and performance levels.

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

Code

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

Usage.tsx

import { PerformanceCard } from "@/components/ui/performance-benchmark-card";
import { Utensils, Sandwich, Bubbles, Banana } from "lucide-react";

export default function PerformanceCardDemo() {
  const foodData = {
    title: "Food",
    headerIcon: <Utensils className="w-4 h-4" />,
    mainValue: 1256,
    percentageChange: 8.6,
    benchmarkAverage: 960,
    competitors: [
      {
        name: "Banana Shake",
        value: 2292,
        icon: <Banana className="w-4 h-4" />,
      },
      {
        name: "Big Fernand",
        value: 1694,
        icon: <Sandwich className="w-4 h-4" />,
      },
      {
        name: "Manhatt'n's Burgers",
        value: 998,
        icon: <Bubbles className="w-4 h-4" />,
      },
    ],
    performanceLevels: [
        { label: "0", value: 800, color: "bg-red-500" },
        { label: "800", value: 1100, color: "bg-orange-400" },
        { label: "1100", value: 1400, color: "bg-yellow-400" },
        { label: "+1400", value: 2500, color: "bg-green-500" },
    ],
  };

  return (
    <div className="flex items-center justify-center h-full bg-background p-4">
      <PerformanceCard
        title={foodData.title}
        headerIcon={foodData.headerIcon}
        mainValue={foodData.mainValue}
        percentageChange={foodData.percentageChange}
        benchmarkAverage={foodData.benchmarkAverage}
        competitors={foodData.competitors}
        performanceLevels={foodData.performanceLevels}
      />
    </div>
  );
}

Dependencies

More by Kavi Katiyar

View all
  • 3D Card

    3D Card

    1.1K
  • Bento Product Features

    Bento Product Features

    878
  • Testimonial Slider

    Testimonial Slider

    743
  • Card

    Card

    625
  • Order Confirmation Card

    Order Confirmation Card

    539
  • Project Detail View

    Project Detail View

    432
  • Animated Card

    Animated Card

    411
  • Stats Card

    Stats Card

    403

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 2

    Statistics Card 2

    304
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    601
  • Stats cards with links

    Stats cards with links

    37
  • Card Studio

    Card Studio

    14
  • Statistics Card 7

    Statistics Card 7

    326
  • The Item one

    The Item one

    3
  • Statistics Card 10

    Statistics Card 10

    293