ConversionBreakdown
Amount → fee → rate → recipient gets. Every line.
npx shadcn add @lopifi/conversion-breakdownExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
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.
Wise's honesty pattern as a component, with every line visible.
Amount to convert 1,000.00 USD
Our fee −4.50 USD ← itemized, named
Amount we'll convert 995.50 USD
────────── ← single rule
Rate 1 USD = 0.91842 EUR · 09:12 UTC
Recipient gets 914.29 EUR
══════════ ← double rule
- Every fee named and itemized. Never a lump "Fees".
- The rate line carries its timestamp.
- Uses
Rule, the same grammar as the statements, so the library reads as one system. - Percentage-of-total splits use largest-remainder allocation, so the parts sum to the total exactly.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Swaps & FX
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section ConversionBreakdown renders in, the calculators behind its figures, and the ledger payloads that feed it.
- ConversionBreakdown, runningThe swaps showcase — live, with theme, density, grayscale and reduced-motion switches.
- FX conversion & gain/lossConvert at your policy rate and measure the FX gain or loss.
- Swaps & FXThe rule for this family: A rate is a perishable fact. It never appears without a timestamp, and it is never transacted on without a lock. Specs for 9 React components: SwapWidget, RateLine, RateLock, ConversionBreakdown and 5 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 Swaps & FX changes
Your copy doesn’t update itself when we fix something here.
- One email when a Swaps & FX component needs a migration
- Nothing when nothing changes
Or install it now