# Unique Visitors

> A visitor KPI card with a previous-period comparison and growth badge.

A shadcn/ui block from the [@studio-blocks](https://studio-blocks.arhamkhnz.com/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/studio-blocks/kpi-05).

- Page, with a live preview: https://shadcn.exchange/r/studio-blocks/kpi-05
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/studio-blocks/kpi-05-light-2b16a73978ecd5e4.png
- Registry item: https://studio-blocks.arhamkhnz.com/r/kpi-05.json
- Categories: kpi
- Listed: 2026-10-24, source last changed 2026-10-24

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/studio-blocks/kpi-05.json
```

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

## Dependencies

- npm packages: `lucide-react`
- Registry items: `card`, `badge`

## Files

### `src/registry/blocks/kpi/kpi-05/kpi-05.tsx`

```tsx
import { ArrowUpRight } from "lucide-react";

import { Badge } from "@/components/ui/badge";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";

export function Kpi05() {
  return (
    <Card>
      <CardHeader>
        <CardTitle className="text-sm font-normal">Unique Visitors</CardTitle>
      </CardHeader>
      <CardContent className="flex flex-col gap-4">
        <div className="flex flex-wrap items-center justify-between gap-4">
          <div className="text-2xl leading-none tracking-tight tabular-nums">213.1k</div>
          <Badge className="bg-green-500/10 text-green-700 dark:bg-green-500/15 dark:text-green-300">
            <ArrowUpRight />
            2.8%
          </Badge>
        </div>
        <div className="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">
          <span>
            from <span className="text-foreground">207.3k</span>
          </span>
          <span aria-hidden="true">·</span>
          <span>last 4 weeks</span>
        </div>
      </CardContent>
    </Card>
  );
}
```
