# M counting number 1

> Stats section — four counters animate a social-proof grid on mount

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

- Page, with a live preview: https://shadcn.exchange/r/cnippet/m-counting-number-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/m-counting-number-1-light-9b09f8a65a15382d.png
- Registry item: https://ui.cnippet.dev/r/m-counting-number-1.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-1.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-1.tsx`

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

const stats = [
  { label: "Components shipped", suffix: "+", value: 164 },
  { label: "GitHub stars", suffix: "K", value: 4.2 },
  { label: "Monthly downloads", suffix: "K", value: 98 },
  { label: "Contributors", suffix: "", value: 37 },
];

export default function CountingNumberStats() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <div className="grid grid-cols-2 gap-8 sm:grid-cols-4">
        {stats.map((stat) => (
          <div className="text-center" key={stat.label}>
            <p className="font-bold text-4xl text-foreground tracking-tight">
              <CountingNumber
                target={stat.value}
                transition={{ duration: 2, ease: "easeOut", type: "tween" }}
              />
              {stat.suffix}
            </p>
            <p className="mt-1 text-muted-foreground text-xs">{stat.label}</p>
          </div>
        ))}
      </div>
    </div>
  );
}
```
