terra vidhal

Kpi Counter

Dashboards

About

A KPI tile with an animated counter, a change badge and a self-drawing sparkline.

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

Code

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

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { KpiCounter } from "@/components/ui/kpi-counter";

export default function KpiCounterDemo() {
  return (
    <main className="flex min-h-screen items-center justify-center bg-background px-6">
      <KpiCounter
        label="Monthly revenue"
        value={128450}
        prefix="$"
        delta={18.2}
        points={[18, 22, 20, 29, 27, 34, 33, 41, 47, 45, 56, 64]}
        hint="Compared to the previous month"
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Gravity Stars Background

    Gravity Stars Background

    3
  • Marquee

    Marquee

    1
  • Topographic Lines

    Topographic Lines

    1
  • Firework Burst

    Firework Burst

  • Glyph Field

    Glyph Field

  • Shimmering Text

    Shimmering Text

  • Gradient Text

    Gradient Text

  • Radial Progress

    Radial Progress

More in Dashboards

View all
  • Creator Dashboard

    Creator Dashboard

    84
  • serf dashboard

    serf dashboard

    78
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    1.1K
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.2K
  • App Dashboard Layout

    App Dashboard Layout

    564
  • Chart Component

    Chart Component

    46
  • Glass Smart Home Dashboard

    Glass Smart Home Dashboard