Back to Components
Components

Metric Display

Large number display with count animation, unit suffix, and optional comparison value.

Monthly active users

0users
Compared toLast month 45,120

Net revenue

0.0k
Target140k

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/metric-display.tsx

Installation

Using shadcn CLI

npx shadcn add metric-display --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge