# Metrics 4

> metrics

A shadcn/ui block from the [@cnippet-blocks](https://blocks.cnippet.dev/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet-blocks/metrics-4).

- Page, with a live preview: https://shadcn.exchange/r/cnippet-blocks/metrics-4
- Screenshot: https://shadcn.exchange/shot/cnippet-blocks/metrics-4/light.png
- Registry item: https://blocks.cnippet.dev/r/metrics-4.json
- Categories: metrics
- Listed: 2026-11-01, source last changed 2026-11-01

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/cnippet-blocks/metrics-4.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/separator`

## Files

### `registry/default/sections/metrics-4.tsx`

```tsx
//biome-ignore-all lint/suspicious/noArrayIndexKey:<>

"use client";

import { Separator } from "@/components/ui/separator";

export default function Component() {
  const achievements = [
    {
      description: "Customer satisfaction score",
      subtitle: "Based on 10,000+ reviews",
      value: "4.9/5.0",
    },
    {
      description: "Enterprise clients worldwide",
      subtitle: "Fortune 500 companies",
      value: "500+",
    },
    {
      description: "API calls processed daily",
      subtitle: "99.99% uptime guaranteed",
      value: "10M+",
    },
  ];

  return (
    <div className="w-full bg-violet-600 px-4 py-16 md:py-20 dark:bg-violet-700">
      <div className="mx-auto max-w-6xl">
        <div className="mb-12 text-center md:mb-16">
          <h2 className="mb-4 font-normal text-3xl text-white md:text-4xl lg:text-5xl">
            Why developers choose us
          </h2>
          <p className="mx-auto max-w-2xl text-sm text-violet-100 sm:text-base">
            Industry-leading performance and reliability you can count on
          </p>
        </div>

        <div className="flex flex-col gap-8 md:flex-row md:gap-0">
          {achievements.map((achievement, index) => (
            <div className="flex-1" key={index}>
              <div className="flex flex-col items-center text-center">
                <div className="mb-3 font-semibold text-5xl text-white tracking-tight md:text-6xl">
                  {achievement.value}
                </div>
                <p className="mb-2 text-sm text-violet-50 sm:text-base">
                  {achievement.description}
                </p>
                <p className="text-violet-200 text-xs sm:text-sm">
                  {achievement.subtitle}
                </p>
              </div>
              {index < achievements.length - 1 && (
                <Separator className="mx-auto mt-8 h-px w-24 bg-violet-400 md:hidden" />
              )}
            </div>
          ))}
        </div>
      </div>
    </div>
  );
}
```
