# M counting number 3

> Dashboard metrics — three gradient counters inside bordered cards with different durations

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/m-counting-number-3).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/m-counting-number-3
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/m-counting-number-3-light-0afad28de766faaf.png
- Registry item: https://ui.cnippet.dev/r/m-counting-number-3.json
- Categories: counting number
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/m-counting-number-3.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/counting-number`

## Files

### `registry/default/motion-variants/m-counting-number-3.tsx`

```tsx
import { CountingNumber } from "@/registry/default/motion/counting-number";

const metrics = [
  {
    color: "from-violet-500 to-purple-600",
    label: "Uptime SLA",
    prefix: "",
    suffix: "%",
    target: 99.9,
    transition: {
      duration: 1.8,
      ease: "easeOut" as const,
      type: "tween" as const,
    },
  },
  {
    color: "from-blue-500 to-cyan-500",
    label: "Requests / sec",
    prefix: "",
    suffix: "K",
    target: 12.4,
    transition: {
      duration: 2,
      ease: "easeOut" as const,
      type: "tween" as const,
    },
  },
  {
    color: "from-emerald-500 to-teal-500",
    label: "Avg latency",
    prefix: "",
    suffix: "ms",
    target: 42,
    transition: {
      duration: 1.5,
      ease: "easeOut" as const,
      type: "tween" as const,
    },
  },
];

export default function CountingNumberDashboard() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <div className="flex w-full max-w-xs flex-col gap-3">
        {metrics.map((m) => (
          <div
            className="flex items-center justify-between rounded-xl border border-border bg-card p-4"
            key={m.label}
          >
            <p className="text-muted-foreground text-sm">{m.label}</p>
            <p
              className={`bg-gradient-to-r ${m.color} bg-clip-text font-bold text-2xl text-transparent tabular-nums`}
            >
              {m.prefix}
              <CountingNumber target={m.target} transition={m.transition} />
              {m.suffix}
            </p>
          </div>
        ))}
      </div>
    </div>
  );
}
```
