# KPI Scorecard block

> Color-block KPI stat cards with delta badge, vs-last-month row, and overflow menu

Four KPI metric cards on solid color backgrounds with delta arrow badge, vs-last-month comparison, and per-card overflow menu. Built with ReUI Badge, shadcn Card, Button, DropdownMenu. Dashboard stats, KPI tiles, scorecard.

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

## Best for

Solid color KPI tiles, 1 hue per metric from its data entry, with white text and a translucent delta badge

## Agent notes

- Set each tile's color through the `bg` class on its `stats` entry; the text and badge stay fixed white
- All 5 `DropdownMenuItem` entries are unwired and repeat in every tile, so connect or trim them
- `positive` is set on each `stats` entry but never read; the arrow follows `delta` and the badge color is fixed

## When not to use

- Tiles with only a muted label and a bold figure on a halftone backdrop: use [Deal Invoice Tiles](https://web.dev.reui.io/blocks/application/card/card-35.md) (`get_block("card-35")`)
- Tiles that lead with a bordered colored icon tile and a status badge: use [Support Metrics](https://web.dev.reui.io/blocks/application/stats/stats-12.md) (`get_block("stats-12")`)

## Install

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

## 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.
