Usage billing
This month's invoice built from base fee and metered lines, with tax.
Usage this period
Oct 1 – Oct 21, 2026 (so far)
$787.28
- Team plan, 12 seats 40%
- API requests 59%
- Storage 2%
| Item | Usage | Charge |
|---|---|---|
| Team plan, 12 seats | $288 | |
| 1,340,000 requests | $428 | |
| ||
| 212 GB | $12.96 | |
| ||
| 3,800 minutes | Included | |
| ||
| Subtotal | $728.96 | |
| Tax (8%) | $58.32 | |
| Total | $787.28 | |
When to use
- Showing exactly how a usage-based bill adds up.
- The invoice is still open and changing.
When not to use
- Only a total is needed.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/usage-billing
Adds its 7 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
UsageBilling
8 props
PropTypeDefaultDescription
labelstring"Usage this period"
period *string—
lines *readonly UsageLine[]—
base{ label: string; amount: number; }—A fixed charge such as the plan fee.
taxRatenumber0
currencystring"USD"
onDownload(() => void)—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes img semantics, with aria-label, aria-hidden, aria-expanded and aria-controls kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/usage-billing.mdThe index of every part is at /llms.txt.