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>
);
}
















