v0.5.1

Metric

Stat cards with optional trend delta and sparkline.

Views

2,000

40%vs last month

Installation

npx paubha@latest add metric

Usage

import { Metric } from "@/components/ui/metric";

<Metric
  label="Views"
  value="2,000"
  trend="up"
  delta="40%"
  description="vs last month"
/>

Examples

With sparkline

Active users

1,240

Metric group

Views

12.4k

Users

3,281

Sessions

8.1k