Back to Components
Cards

KPI Card

Key performance indicator card with value, change percentage, trend arrow, and sparkline area.

Revenue

$48,35212.5%

vs last period

Users

2,8413.2%

vs last period

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/kpi-card.tsx

Installation

Using shadcn CLI

npx shadcn add kpi-card --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge