TrialBalance
All accounts with the debit=credit proof.
npx shadcn add @lopifi/trial-balanceExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Out of balance
Cash keyed as 182,400.00 instead of 184,200.00: a transposition, and a difference divisible by nine.
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.
Every account with debit and credit columns and the proof that they're equal. The most boring component in the library, and the one an accountant checks first.
- The totals are the rows' sums.
totalDebitandtotalCreditare optional: omitted, each column is summed fromrows. Handed in (the totals the ledger reports), they're also checked against the rows' sums, and a total its own column doesn't reach is flagged with the sum it should have been.
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 TrialBalance renders in, the calculators behind its figures, and the ledger payloads that feed it.
- TrialBalance, runningThe tables showcase — live, with theme, density, grayscale and reduced-motion switches.
- Trial balance checkerCheck a trial balance ties, flag wrong-side balances and see what it rolls up to.
- 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