BalanceSheet
Assets / liabilities / equity, with the balance check.
npx shadcn add @lopifi/balance-sheetExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Single date, classified
Current and non-current assets subtotaled, at one as-of date, with its balance check.
Out of balance
Retained earnings overstated by $124.00: the identity fails, and the difference owns the screen.
Frozen header
A capped height freezes the date columns while the accounts scroll; either date can be put away.
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.
Assets → Liabilities → Equity, with the accounting identity checked and displayed.
- The balance check is a first-class UI element, not a footnote.
Assets 4,281,900 = Liabilities 1,840,200 + Equity 2,441,700 ✓. When it doesn't balance, it shows a prominent error with the difference, not a silently wrong statement. - Current vs. non-current sub-grouping.
- As-of date, not a period. A balance sheet is a point in time. The component takes a
Date, not a range, so it can't be labeled with one. - Comparative columns: this date vs. prior period end vs. prior year end.
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 BalanceSheet renders in, the calculators behind its figures, and the ledger payloads that feed it.
- BalanceSheet, runningThe statements showcase — live, with theme, density, grayscale and reduced-motion switches.
- ReportsShould you build statements on the reports endpoints?
- 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