RateTable
Rate type is not optional. A missing rate blocks.
npx shadcn add @lopifi/rate-tableExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Missing rate
No September average for GBP/USD, so translating the UK P&L is blocked rather than run at 1.0.
Manual override
A historical rate typed in by hand carries its reason and its approver, highlighted in the table.
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.
By pair, date and type (spot, closing, average, historical, budget). Rate type is not optional; the same pair on the same date has different closing and average rates. Manual overrides require a reason and an approver and are visibly distinguished. A missing rate is a blocking error, never a silent 1.0.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Close, controls & consolidation
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section RateTable renders in, the calculators behind its figures, and the ledger payloads that feed it.
- RateTable, runningThe close 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.
- Close, controls & consolidationConceptually they belong to this family. Specs for 24 React components: PeriodStatus, CutoffWarning, CloseStatus, AuditTrail and 20 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 Close, controls & consolidation changes
Your copy doesn’t update itself when we fix something here.
- One email when a Close, controls & consolidation component needs a migration
- Nothing when nothing changes
Or install it now