StatementToolbar
Basis, period, comparison, currency, consolidation.
npx shadcn add @lopifi/statement-toolbarExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
With export and expand controls
Passing the handlers brings in the export menu and wires expand all and collapse all.
Cash basis, calendar year
The same toolbar on a January fiscal year, set to cash basis against the prior year.
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.
Basis (cash / accrual) · period · comparison · presentation currency · consolidation scope · expand-all/collapse-all · export.
The basis toggle is prominent and always visible. A cash-basis P&L and an accrual-basis P&L are different statements, and a user who doesn't know which one they're reading is being misled. It doesn't belong in a settings menu.
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 StatementToolbar renders in, the calculators behind its figures, and the ledger payloads that feed it.
- StatementToolbar, runningThe statements showcase — live, with theme, density, grayscale and reduced-motion switches.
- 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