VarianceCell
Absolute + percent + significance flag.
npx shadcn add @lopifi/variance-cellExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Neutral polarity
Receivables rising is neither good nor bad on its own, so the change takes no color.
Growth from zero
A line that was zero last month has no meaningful percent: n/a, never 100% or infinity.
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.
Absolute change + percent change + significance. Significance is a threshold on both magnitude and materiality (a 200% swing on $12 isn't news), and the threshold is configurable because materiality is a business judgment.
polarity is required, no default (API change: it previously fell back to standard). Division by zero → n/a, never Infinity.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Statements
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section VarianceCell renders in, the calculators behind its figures, and the ledger payloads that feed it.
- VarianceCell, runningThe statements showcase — live, with theme, density, grayscale and reduced-motion switches.
- Difference diagnoserName the keying error behind an out-of-balance: transposition, slide, sign flip or omission.
- StatementsNo component library ships a <BalanceSheet />. That's the biggest gap in the market, and the reason Lopifi exists. Specs for 16 React components: StatementTable, StatementRow, ProfitAndLoss, BalanceSheet and 12 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 Statements changes
Your copy doesn’t update itself when we fix something here.
- One email when a Statements component needs a migration
- Nothing when nothing changes
Or install it now