StatementNotes
Numbered notes, referenced from the line they explain.
npx shadcn add @lopifi/statement-notesExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Referenced from a line
A NoteRef beside the line it explains, linking to the note's anchor and named for it.
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.
Numbered notes, each with a title, a body and an optional small table, plus NoteRef, the marker on a statement line that links to its note.
- Every note is an anchor (
note-3, prefix configurable), reached withscroll-marginso a sticky header never covers it. NoteRefis a real link with a real name: visible "Note 3", accessible name "Note 3, Long-term debt". In print the underline goes and the number stays, because the number is how paper cross-references.- A note's table names its total; the component sums it. A note can't print a total its own lines don't reach. One
nullline makes the totaln/a, never a smaller total. - The table follows the statement conventions: rules over the numeric columns only, single above the total and double below, parentheses for negatives,
—for zero. - Print: a note's heading never strands at a page foot (
break-after: avoid), and its table never splits (break-inside: avoid). - Server-safe. Two sets of notes on one page take different
idPrefixvalues.
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 StatementNotes renders in, the calculators behind its figures, and the ledger payloads that feed it.
- StatementNotes, 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
npx shadcn add @lopifi/statement-notes