InvoiceCard
Invoice summary with aging state.
npx shadcn add @lopifi/invoice-cardExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Overdue
The aging is derived from the due date and today, and printed as a day count, never color alone.
Partially paid
Total, paid and outstanding are three lines, so the open balance is never mistaken for the invoice.
Yen invoice
JPY has no minor unit, so the amounts carry no decimals; the currency decides, not the component.
How it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
Number, customer, amount, due date, aging state (current / 1-30 / 31-60 / 61-90 / 90+). Overdue is --negative with the day count, never color alone. Partial payments show paid vs. outstanding. A paid invoice — paidInFull, or derived from paid ≥ total (or nothing outstanding) in the invoice's currency — shows "Settled" and is never overdue, however far past its due date.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Cards
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section InvoiceCard renders in, the calculators behind its figures, and the ledger payloads that feed it.
- InvoiceCard, runningThe cards showcase — live, with theme, density, grayscale and reduced-motion switches.
- Sales invoicesWhat does an accounts-receivable invoice look like in each API?
- CardsAll cards: 24px radius, 24px inset, --surface on --canvas, 1px --border, no resting shadow. Specs for 11 React components: BalanceCard, KpiCard, AccountCard, PaymentMethodCard and 7 more.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Cards changes
Your copy doesn’t update itself when we fix something here.
- One email when a Cards component needs a migration
- Nothing when nothing changes
Or install it now