# Wallet Balance block

> Dark balance stat card with segmented multi-currency allocation bar and topup action

Wallet balance card with total amount, positive percent change, and a color-coded segmented bar splitting holdings by currency (USD, GBP, EUR) plus a Topup button. Uses shadcn Card and Button. For finance dashboards, crypto and banking apps.

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

## Best for

A dark wallet balance with a Topup button over a bar split across 5 currencies, each segment labeled with its code and share

## Agent notes

- Replace `balanceData`; each `currencies` entry sets `code`, `percent` and a `color` class, and `percent` is also its segment width
- The Topup `Button` has no handler, so wire it to your funding flow
- The change always renders as a plus sign with `delta` in emerald, so a negative `delta` needs its own branch

## When not to use

- Inflows from several funds stacked year by year, with a run rate for the open year: use [Yearly Fund Inflows](https://web.dev.reui.io/blocks/chart/bar-chart/chart-9.md) (`get_block("chart-9")`)
- The balance over time drawn as a line with its peaks marked: use [Balance Tracker](https://web.dev.reui.io/blocks/chart/line-chart/chart-4.md) (`get_block("chart-4")`)

## Install

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

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