An issued invoice as the customer reads it: parties with tax ids, lines, discount, VAT or reverse charge, payments made and the balance, with copy link, email, download and pay.
Adds its 5 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
invoiceBalance
0 props
No props of its own; it accepts the native props of its root element.
InvoiceDetail
21 props
PropTypeDefaultDescription
number *string—
status *InvoiceStatus—
issued *string—
due *string—
from *InvoiceParty—
to *InvoiceParty—
lines *readonly InvoiceDetailLine[]—
taxRate *number—e.g. 0.23 for 23% VAT. Ignored with `reverseCharge`.
reverseChargebooleanfalseEU B2B: the customer accounts for VAT.
discount{ label: string; amount: number; }—
paymentsreadonly InvoicePayment[][]
currencystring"EUR"
localestring"en-GB"Number and date formatting, e.g. "en-US".
taxLabelstring"VAT"What the tax line is called where you sell, e.g. "Sales tax".
headingLevel2 | 32The invoice number's heading level; 3 when the invoice sits under a screen's own h2.
notesstring—
linkstring—A shareable link to this invoice.
onPay(() => void)—
onDownload(() => void)—Defaults to printing, which can save a PDF.
onEmail(() => void)—
classNamestring—
Keyboard
No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes region semantics, with aria-labelledby, aria-hidden and aria-label 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.