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.
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.mdThe index of every part is at /llms.txt.
More in Billing
Finance homeWhere finance starts the day: cash across every entity and currency in one reporting total, lines to match, claims to approve and invoices past due, and each entity's progress through the close.Finance reconcileBank reconciliation: each line beside the invoices or bills that could settle it, with the reasons in words; tick several to balance it, small FX differences booked for you, rules for next time, and undo.Finance expensesExpense approvals with the policy questions answered: no receipt, over the category limit, a weekend, a possible duplicate. Approve one or many; rejecting asks for a reason the employee sees.