Arc
ComponentsBlocksDocsPricingTry the demo
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboard
KPI drilldownNew
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Connected scatterNew
Market terminalNew
Budget varianceNew
Small multiplesNew
Line replayNew
AI chatNew
AI composer
Agent runNew
SidebarPro4
Page header
Command palette
Notification center
Empty states
Login and sign up5
OTP input
Multi-step formPro
Settings page
Security settings
Billing overview
Usage billingNew
Team members
Invite peopleNew
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Plan comparison
Pricing calculatorNewPro
Usage pricingPro
Cart drawerNewPro
Checkout summaryNewPro
Invoice studio
Wallet card
Product listingNew
Product detailNew
Inbox triage
Support conversation
Support widget
File upload
Media playerPro
Week calendarNew
Availability picker
Project board
Release readiness
Hero sectionNew
Hero signupNewPro
Scroll storyNewPro
Spotlight gridNewPro
Feature bentoNewPro
Comparison tableNew
Logo marquee
Studio perspectivesPro
Stats bandNew
Changelog feed
FAQ sectionNew
Contact sectionNew
Team showcasePro
Blog gridNew
Site headerNew
Site footerNew
CTA sectionNew
Newsletter signupNew
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new80 new
BlocksUsage billing

Usage billingPro

A usage based billing dashboard with a projected spend line, meters against limits, alerts, and an upgrade that morphs into a confirm sheet.

Live block · sample data

When to use

  • A billing page for usage priced SaaS or infrastructure products.
  • Admin dashboards where finance needs spend alerts and invoice history in one place.
  • Upgrade moments driven by limits, where the upgrade should explain what changes.

When not to use

  • Use billing-overview for flat seat based plans without meters.
  • Use plan-comparison or usage-pricing on a public pricing page.
  • Avoid it for a single quota; a usage meter component is enough.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Use this in the billing area of a usage priced product. Load meters, daily spend, and invoices from your billing provider, save alerts through onAlertsChange, and send the upgrade to your checkout; every charge in the preview is simulated.

example.tsx
1import { UsageBilling } from "@/registry/blocks/usage-billing/usage-billing";2 3export function BillingPage({ usage, plans }: { usage: BillingSnapshot; plans: PlanCatalog }) {4  return (5    <UsageBilling6      period={usage.period}7      daily={usage.dailySpend}8      meters={usage.meters}9      plan={plans.current}10      upgrade={plans.next}11      defaultAlerts={usage.alerts}12      onAlertsChange={alerts => saveAlerts(alerts)}13      onUpgrade={plan => startUpgrade(plan.id)}14      onDownloadInvoice={invoice => downloadPdf(invoice.id)}15    />16  );17}
Built fromAnimated counterText morphButton

API reference

UsageBilling

A usage based billing dashboard: spend so far with a projected line and live alert rules on the chart, per meter usage against limits with warning states, a spend alerts editor, invoice history with downloads, and a plan card that grows into an upgrade confirm sheet.

PropTypeDefaultDescription
period{ label: string; start: string; days: number; today: number }billingPeriodThe current billing period and which day it is.
dailynumber[]dailySpendUsage charges per day so far. Its length is the number of days elapsed.
budgetnumber2000Monthly budget drawn on the chart.
metersMeter[]metersMetered resources: id, name, unit (requests, gigabytes, minutes, invocations, seats), used, limit, and an overage price label.
planPlancurrentPlanThe current plan: name, monthly price, limits keyed by meter id, and perks.
upgradePlan | nullupgradePlanThe plan offered in the upgrade card. Pass null to hide the offer.
defaultAlertsSpendAlert[]spendAlertsInitial alerts: amount, email, and slack.
onAlertsChange(alerts: SpendAlert[]) => void–Called whenever alerts are added, edited, or removed.
invoicesInvoice[]invoicesPast invoices with number, period, issue date, amount, and status.
payment{ brand: string; last4: string; expires: string }paymentMethodCard shown on the plan card, the invoices header, and the confirm sheet.
onUpgrade(plan: Plan) => Promise<void> | void–Runs the upgrade. Resolve to switch plans, reject to show a declined message. Without it the upgrade is simulated.
onDownloadInvoice(invoice: Invoice) => Promise<void> | void–Fetches an invoice PDF. Without it the download is simulated.
currencystring"EUR"ISO currency code for every amount.
classNamestring–Class on the root.

Keyboard interactions

Tab
Moves through the chart, plan card, alerts, and invoice downloads.
Arrow leftorArrow right
Moves the chart cursor one day at a time while the chart has focus.
Enter in an alert amount
Commits the amount; alerts re sort by amount when the field loses focus.
Escape
Closes the upgrade sheet unless a payment is in progress.

Accessibility

  • The chart is an image with a spoken summary of spend, projection, and budget; its cursor also works from the keyboard.
  • Each meter is a meter role with a value text that says when it is near or projected over the limit.
  • Warnings pair an icon and words with color. Invoice status pairs a dot with a label.
  • The upgrade sheet is a modal dialog that traps Tab, focuses its heading, and returns focus to the plan card.
  • The sheet states that the preview takes no payment.

Motion

  • The spend line draws in once, the projection and alert rules follow; alert rules glide to their new height while you type an amount.
  • Meter bars fill with a short stagger. After an upgrade every limit grows, so the bars shrink and warnings clear in place.
  • The plan card grows into the confirm sheet on one spring and folds back into the card once the upgrade lands.
  • Invoice downloads swap their icon for a spinner, then a check, without changing width.
  • Reduced motion removes the draw in, stagger, and flight, and keeps short fades.

Responsive behavior

  • From 700px the chart and plan card share a row, and meters sit beside alerts.
  • Below 520px the invoice issue date and overage prices hide; everything else stacks.
  • The confirm sheet keeps a 12px margin and stays clear of sticky page chrome.

Performance

  • The chart is one SVG sized from a ResizeObserver; hover updates only the cursor and tooltip.
  • Bars animate transform scale only.
  • Sheet flight animates one element's transform and size.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Choose it for products billed on usage: API calls, compute, storage, bandwidth, seats.
  • Feed daily spend from your billing provider; the projection is the average of the last seven days carried to the end of the period.
  • Set plan limits per meter id so the upgrade can recompute every bar.
  • Call your checkout or subscription update API in onUpgrade and reject on a declined card.
/components/blocks/usage-billing/markdown

The full library index for assistants is at /llms.txt.

Related

Billing overviewProBlockA billing page where the plan card morphs into a picker and usage, invoices, and card follow.Usage forecastProBlockA billing period usage chart with a forecast cone and a draggable budget that dates the crossing.Usage pricingProBlockA pricing calculator that finds your plan as you drag seats and traffic.Plan comparisonBlockCompare meaningful differences between plans and billing periods.Usage meterComponentShow what fills an allowance and how close it is to the limit.
PreviousContact sectionNextKPI drilldown
Arc · 75 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown

Usage and billing

Sep 1 to Sep 30 · day 24 of 30

Spend so far

€1,184.80€00123456789,001234567890012345678900123456789.0012345678900123456789
Projected
€1,538.29
Budget
€2,000.00

On pace to reach your €1,500 alert around Sep 30On pace to reach your €1,500 alert around Sep 30

Plan

ProPro€249 a month€249 a month

Renews Oct 1 · Visa ending 4242

Scale gives you room on api requests and bandwidth.

  • 25M API requests
  • 5 TB bandwidth
  • 12,000 build minutes
  • Priority support

Usage

Resets Oct 1
  • API requests8.42M of 10M10M
    Projected 10.53M, 5% overProjected 10.53M, 5% over€2 per extra million
  • Bandwidth1.84 TB of 2 TB2 TB
    Projected 2.3 TB, 15% overProjected 2.3 TB, 15% over€0.08 per extra GB
  • Build minutes3,120 min of 6,000 min6,000 min
    Projected 3,900 minProjected 3,900 min€0.01 per extra minute
  • Function invocations21.4M of 50M50M
    Projected 26.75MProjected 26.75M€0.60 per extra million
  • Seats18 seats of 20 seats20 seats
    Near limit. 2 seats leftNear limit. 2 seats left€19 per extra seat

Spend alerts

Email Slack
  • Sent Sep 22
  • 75% of budget

Invoices

Visa ending 4242
InvoiceIssuedAmountStatusDownload
August 2026NW-2026-008Sep 1€1,742.18Paid
July 2026NW-2026-007Aug 1€1,618.40Paid
June 2026NW-2026-006Jul 1€1,480.07Paid
May 2026NW-2026-005Jun 1€1,302.55Refunded
April 2026NW-2026-004May 1€1,211.90Paid