CheckoutSummary
Itemized total with fees and tax.
npx shadcn add @lopifi/checkout-summaryExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
A discount, parenthesized
A credit prints as ($1,440.00), in column, never as a minus sign that gets lost.
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.
Line items → subtotal (single rule) → fees → tax → total (double rule). Uses the same Rule grammar as the statements. Fees are itemized and named, never a lump "Fees". Multi-currency lines show conversion with the rate and its timestamp.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Payments
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section CheckoutSummary renders in, the calculators behind its figures, and the ledger payloads that feed it.
- CheckoutSummary, runningThe payments showcase — live, with theme, density, grayscale and reduced-motion switches.
- VAT / sales taxAdd tax to a net price or back it out of a gross one, and the parts still add up.
- Amount in wordsWrite an amount in words for a check or contract, cents as a fraction over 100.
- Items, products and servicesIs an item optional, required, or a subsystem?
- TaxWho computes the tax, and can you override it?
- PaymentsPayments — specs for 14 React components: AmountInput, CurrencySelect, PayeeSelect, PaymentForm and 10 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 Payments changes
Your copy doesn’t update itself when we fix something here.
- One email when a Payments component needs a migration
- Nothing when nothing changes
Or install it now