FxExposure
Position by currency with unrealized gain/loss.
npx shadcn add @lopifi/fx-exposureExamples
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.
Position by currency with unrealized gain/loss. Uses polarity="standard" per position, and keeps realized and unrealized separate. They're different facts, and mixing them misstates the position.
More in Swaps & FX
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section FxExposure renders in, the calculators behind its figures, and the ledger payloads that feed it.
- FxExposure, runningThe swaps showcase — live, with theme, density, grayscale and reduced-motion switches.
- 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