panelui

KPI

Cards

About

One number and what it is doing: its change, its shape over time, its progress to a target.

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

Code

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

Usage.tsx

import { UsersIcon } from 'lucide-react';
import { Kpi } from '@/components/ui/panel-kpi';
const READERS = [310, 318, 305, 322, 340, 336, 351, 348, 366, 372, 369, 388, 401, 412];

export default function KpiCard() {
  return (
    <Kpi surface className="max-w-xs">
      <Kpi.Header>
        <Kpi.Icon>
          <UsersIcon />
        </Kpi.Icon>
        <Kpi.Title>Weekly readers</Kpi.Title>
        <Kpi.Actions>
          <Kpi.Trend value={8.2} variant="badge" />
        </Kpi.Actions>
      </Kpi.Header>
      <Kpi.Value>4,120</Kpi.Value>
      <Kpi.Chart data={READERS} color="info" filled height={72} />
      <Kpi.Footer>Counted every Monday</Kpi.Footer>
    </Kpi>
  );
}

Dependencies

More by panelui

View all
  • Spinner

    Spinner

    8
  • Flow

    Flow

    4
  • Hex Chart

    Hex Chart

    2
  • Treemap Chart

    Treemap Chart

    1
  • Soundwave

    Soundwave

    1
  • Share

    Share

    1
  • Scatter Chart

    Scatter Chart

    1
  • Pyramid Chart

    Pyramid Chart

    1

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Stats cards with links

    Stats cards with links

    46
  • Statistics Card 7

    Statistics Card 7

    342
  • Statistics Card 2

    Statistics Card 2

    322
  • Card Studio

    Card Studio

    37
  • Card

    Card

    65
  • Admin Dashboard Cards

    Admin Dashboard Cards

    44
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    779