# Stat

> KPI value with an icon and a tinted trend badge.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/card-05).

- Page, with a live preview: https://shadcn.exchange/r/flx/card-05
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/card-05-light-86264c3db07eb887.png
- Registry item: https://ui.flexnative.com/r/card-05.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/card-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

- Registry items: `card`, `badge`

## Files

### `registry/patterns/card/card-05.tsx`

```tsx
import { DollarSignIcon, TrendingUpIcon } from 'lucide-react'

import { Badge } from '@/components/ui/badge'
import {
  Card,
  CardAction,
  CardDescription,
  CardHeader,
  CardTitle,
} from '@/components/ui/card'

export function Card05() {
  return (
    <Card className="w-full max-w-xs">
      <CardHeader>
        <CardDescription>Total revenue</CardDescription>
        <CardTitle className="text-2xl tabular-nums">$48,231.89</CardTitle>
        <CardAction>
          <div className="bg-muted flex size-9 items-center justify-center rounded-lg">
            <DollarSignIcon className="text-muted-foreground size-4" />
          </div>
        </CardAction>
      </CardHeader>
      <CardDescription className="flex items-center gap-2 px-6">
        <Badge variant="secondary" className="text-emerald-600 dark:text-emerald-400">
          <TrendingUpIcon className="size-3" />
          +20.1%
        </Badge>
        vs. last month
      </CardDescription>
    </Card>
  )
}
```
