Skip to content
AI & AgentsPro

Cost Meter

Spend against budget for a run, a day or a month — amber at 80%, red when it is gone.

Usage

Spend this run

€2.00 budget

€0.42

21% used€1.58 left

Spend today

€20 budget

€17

87% usedNearly spent

Spend this month

€200 budget

€240

120% usedBudget reached

Installation

bash
npm install @wunderui/react

Then import what you need:

tsx
import { CostMeter } from "@wunderui/react"

In context

How the component is used inside real screens — the same compositions as the Usage section of the Figma page.

Budget & recovery

Spend, a failed run and an approval request side by side.

Spend today

$10 budget

$8.60

86% usedNearly spent

Send 12 emails

High risk

Templated follow-up to at-risk customers.

1 min ago

API Reference

PropTypeDefault
spentnumber—
budgetnumber—
unit"currency" | "tokens" | "requests""currency"
currencystring"EUR"
period"run" | "day" | "month""run"
warnAtnumber0.8