# Total Orders

> An orders KPI card with an icon and a weekly comparison.

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

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

## Files

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

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

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

export function Kpi04() {
  return (
    <Card>
      <CardHeader>
        <CardTitle className="text-sm font-normal">Total Orders</CardTitle>
        <CardDescription className="text-3xl leading-none tracking-tight text-foreground tabular-nums">
          379
        </CardDescription>
        <CardAction className="grid size-6 place-items-center rounded-sm bg-muted">
          <ShoppingBag className="size-3 text-foreground" aria-hidden="true" />
        </CardAction>
      </CardHeader>
      <CardContent>
        <p className="text-sm">
          <span className="text-green-700 dark:text-green-300">+8.3%</span>{" "}
          <span className="text-muted-foreground">vs last week</span>
        </p>
      </CardContent>
    </Card>
  );
}
```
