# Total Revenue block

> Total Revenue stat card with trend badge, dropdown actions menu, and supporting metric rows

Single KPI revenue card: large currency figure, USD label, red trend Badge for quarter-over-quarter change, and stacked metric rows. Built on ReUI Frame and Badge with shadcn Button and DropdownMenu actions. For dashboards, analytics, finance.

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

## Best for

One revenue figure in USD with a quarter over quarter drop badge and 2 shaded label and value rows under it

## Agent notes

- The revenue figure, currency label, drop `Badge` and its caption are literals in `Stats`, and the badge is always red
- Replace `planMetrics`, whose labels carry their own trailing colon and whose values are preformatted strings
- The 4 `DropdownMenuItem` entries, Settings, Export Data, Pin to Dashboard and Remove, have no handlers

## When not to use

- Fact tiles for a company or session, each with a logo, badge or avatar group: use [Detail Fact Tiles](https://web.dev.reui.io/blocks/application/card/card-7.md) (`get_block("card-7")`)
- Several KPI tiles in one row, each with its own delta badge and menu: use [Stats Overview](https://web.dev.reui.io/blocks/application/stats/stats-1.md) (`get_block("stats-1")`)

## Install

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

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