# Stats Overview block

> KPI stat card grid with up or down trend badges and a per-card overflow action menu

Responsive four-column KPI cards: large formatted metric, colored up or down delta badge, vs-last-month line, plus a per-card overflow menu. Uses ReUI Frame and Badge with shadcn DropdownMenu, Button, Separator. Stats overview, metrics, analytics.

- Type: Pro block
- Category: [Stats](https://web.dev.reui.io/blocks/application/stats.md)
- Page: https://web.dev.reui.io/blocks/application/stats/stats-1
- MCP: `get_block("stats-1")`
- Built with: Badge, Button, Dropdown Menu, Frame, Separator
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

Neutral bordered tiles, 4 across on wide screens, each with a green or red delta badge, last month's value and a 5 item menu

## Agent notes

- Replace the `stats` array in data.ts; `positive` sets the badge color while the arrow follows the sign of `delta`
- None of the 5 `DropdownMenuItem` entries, Settings to Remove, has a handler, so wire each one per tile
- The figure goes through `format` and last month's value through `lastFormat` when set, else through `prefix`, `formatNumber` and `suffix`

## When not to use

- Each cell of a bordered KPI grid draws its own area chart: use [KPI Area Charts](https://web.dev.reui.io/blocks/application/card/card-29.md) (`get_block("card-29")`)
- Metric tiles on solid color fills with white text and a translucent badge: use [KPI Scorecard](https://web.dev.reui.io/blocks/application/stats/stats-2.md) (`get_block("stats-2")`)

## Install

```bash
npx shadcn@latest add @reui/stats-1
```

## About Stats blocks

### When to use

- A row of 3 or 4 KPI tiles to sit above the content of a page you already have
- One metric card that pairs a headline figure with a meter, a split bar or supporting rows
- A card already written for one topic: leads, tasks, quota, compliance, renewals, adoption, balance or capacity

### When not to use

- Tiles on a dotted, halftone or line grid backdrop, or records such as profiles or jobs: use the [Card blocks](https://web.dev.reui.io/blocks/application/card.md)
- A metric whose value carries a small trend drawn beside or under it: use the [Sparkline blocks](https://web.dev.reui.io/blocks/chart/sparkline.md)
- A whole overview page with a header, summary tiles and a work list or trend under them: use the [Dashboard blocks](https://web.dev.reui.io/blocks/application/dashboard.md)

### Agent notes

- Each page.tsx only centers `Stats` in a padded wrapper; mount `Stats` from components/stats.tsx inside your own layout
- `Stats` takes no props, fetches nothing and wires no handler, so add props for your own figures and callbacks

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
