# Total Revenue

> A revenue KPI card with a value, trend, and description.

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-01).

- Page, with a live preview: https://shadcn.exchange/r/studio-blocks/kpi-01
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/studio-blocks/kpi-01-light-ca97b855c267693f.png
- Registry item: https://studio-blocks.arhamkhnz.com/r/kpi-01.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-01.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-01/kpi-01.tsx`

```tsx
import { DollarSign, TrendingUp } from "lucide-react";

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

export function Kpi01() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>
          <div className="flex size-7 items-center justify-center rounded-lg border bg-muted text-muted-foreground">
            <DollarSign className="size-4" />
          </div>
        </CardTitle>
        <CardDescription>Total Revenue</CardDescription>
      </CardHeader>
      <CardContent className="flex flex-col gap-1">
        <div className="flex flex-wrap items-center gap-2">
          <div className="text-3xl leading-none font-medium tracking-tight tabular-nums">$1,250.00</div>
          <Badge>
            <TrendingUp className="size-3" />
            +12.5%
          </Badge>
        </div>
        <p className="text-sm text-muted-foreground">Visitors for the last 6 months</p>
      </CardContent>
    </Card>
  );
}
```
