CashFlowStatement
Operating / investing / financing.
npx shadcn add @lopifi/cash-flow-statementExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Single period
One month on the indirect method, starting from net income, with its tie to balance sheet cash.
Does not tie to the balance sheet
The walk foots, but ending cash misses the balance sheet, so the other side of the tie is stated.
Direct method
Cash received and paid, with net income reconciled underneath and the two methods proved to agree.
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.
Operating / Investing / Financing, with the reconciliation to the change in cash. Supports both direct and indirect methods. The beginning-cash → ending-cash tie-out is displayed and asserted, same as the balance sheet's identity.
- The direct method carries its reconciliation. With
method="direct",reconciliationtakes the lines that walk net income to net cash from operating activities (the indirect method's operating section) and the id of the direct statement's operating total. The lines render as a section below the net change in the same table, closed by a subtotal the component sums itself, and a check per period asserts the reconciliation reaches the direct method's operating cash, stating the difference when it doesn't. A direct-method statement without a reconciliation says so in an alert rather than rendering as complete. See statement semantics.
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 CashFlowStatement renders in, the calculators behind its figures, and the ledger payloads that feed it.
- CashFlowStatement, 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