Skip to content
caliper ui pro docs

Billing screen

Plan, usage and money: the next invoice itemised before it is charged, usage with its cost at this pace, and failed invoices with a pay action.

Pro
Billing

Billing

Team plan · billed monthly · renews 1 November

Usage this period

Seats

14 / 20

Within limit

Build minutes

3,120 / 5,000

About $57 extra at this pace.

Within limit

Storage

41 / 50 GB

Within limit

Next invoice

$666.71

Charged 1 November

Team plan · 14 seats × $32
$448.00
Build minutes overage (projected)
$57.00
2 seats added mid-period
$46.00
VAT 21%
$115.71
Visa ending 4242Expires 10/26, before this invoice

Invoices

  • INV-2041September · Paid$672.00
  • INV-1987August · Retrying 12 Oct$624.00
  • INV-1932July · Paid$624.00
  • INV-1874June · Paid$592.00
  • INV-1820May · Paid$592.00
  • INV-1766April · Paid$560.00
  • INV-1711March · Paid$528.00
  • INV-1659February · Paid$528.00
State

When to use

  • Self-serve plans with seats or metered usage.
  • Customers ask what next month will cost.

When not to use

  • Invoice-only enterprise billing; a list of invoices is enough.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/billing-screen

Adds its 14 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

BillingScreen

12 props
PropTypeDefaultDescription
titlestring"Billing"
plan *{ name: string; detail: string; }—
actionsReactNode—
usage *readonly BillingUsage[]—
nextInvoice *{ date: string; lines: readonly { label: string; amount: number; projected?: boolean | undefined; }[]; }—
card{ label: string; expires: string; expiresFirst?: boolean | undefined; onUpdate?: (() => void) | undefined; }—
details{ title?: string | undefined; items: readonly DescriptionItem[]; }—Who is billed and where invoices go, as editable pairs, in a panel under the usage.
invoices *readonly BillingInvoice[]—
renderInvoice((invoice: BillingInvoice) => ReactNode)—Gives every invoice a View button that opens what you return, for example an InvoiceDetail, in a dialog.
currencystring"USD"
childrenReactNode—More panels under the next invoice, for example what the usage cost by team.
classNamestring—

Keyboard

  • Keyboard and focus come from Radix dialog: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Accessibility

It is built on native elements and keeps aria-label, aria-hidden and aria-labelledby 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/billing-screen.md

The index of every part is at /llms.txt.

More in Billing