Skip to content
Keyboard shortcuts
Esc
Everywhere
Search the site
⌘K
Search the site
/
Show these shortcuts
?
Close what is open
Esc
Install
195 components
Components

195 React accounting components.

Each component gets a written spec before any code, and the spec ships with it. A balance card here carries its period and its currency, and renders an unknown value as unknown, never as $0.00.

Design layer

Primitives, surfaces, tables and charts. Any UI kit has these. Here they're built around money that can be negative, null, or in a currency with three decimal places.

Primitives

Family spec

The layer everything else composes. Build these first; nothing above them is right until they are.

RowComponentWhat it doesPreview
1MoneymoneyThe core primitive. A monetary value, formatted correctly.
2DeltadeltaA signed change, with polarity and a redundant non-color cue.
3FigurefigureA large display numeral with automatic size step-down.
4PercentpercentPercent vs. percentage points, explicitly discriminated.
5RuleruleSingle / double / section accounting rule lines.
6StatusPillstatus-pillPayment and reconciliation states.
7SparklinesparklineInline trend, one-shot draw.
8TrendtrendArrow + delta + optional sparkline, composed.
9AsOfas-ofTimestamp with live relative formatting and a stated timezone.
10RedactedredactedMasked value with reveal.
11ReferencereferenceCopyable transaction/account ID with disambiguated glyphs.
12CurrencyBadgecurrency-badgeISO code + optional flag.
13EntityMarkentity-markBank/merchant logo with the full fallback ladder.
14CardNetworkMarkcard-network-markVisa, Mastercard, Amex, Discover, JCB, UnionPay, Diners. One optical size, a text fallback.
15TooltiptooltipHover/focus restatement. Never the only home of a fact.
16InfoTipinfo-tipThe ⓘ. Extra context that survives touch, because it opens on press.
16 components16 built · 0 specified
RowComponentWhat it doesPreview
1BalanceCardbalance-cardThe hero: one trusted number.
2KpiCardkpi-cardMetric + delta + optional sparkline.
3AccountCardaccount-cardBank account with available vs. current.
4PaymentMethodCardpayment-method-cardThe physical card object. 3D flip, pointer tilt.
5RunwayCardrunway-cardMonths of runway with a burn line.
6InvoiceCardinvoice-cardInvoice summary with aging state.
7SubscriptionCardsubscription-cardRecurring charge with next-billing.
8AnomalyCardanomaly-cardA flagged deviation with its explanation.
9GoalCardgoal-cardTarget vs. actual with a progress rule.
10StatCardstat-cardThe minimal label+value card.
11CardStatementcard-statementStatement balance, minimum due, due date, limit and available — the issuer's statement.
11 components11 built · 0 specified

Payments

Family spec
RowComponentWhat it doesPreview
1AmountInputamount-inputThe hardest input in fintech.
2CurrencySelectcurrency-selectSearchable, with recents.
3PayeeSelectpayee-selectRecipient picker with fuzzy search and last-paid.
4PaymentFormpayment-formAmount → payee → method → date → memo.
5PaymentMethodListpayment-method-listSelectable method cards.
6CheckoutSummarycheckout-summaryItemized total with fees and tax.
7ConfirmPaymentDialogconfirm-payment-dialogAmount, destination, timing. Hold-to-confirm.
8PaymentStatusTimelinepayment-status-timelineSubmitted → sent → settled, with real timestamps.
9PaymentSuccesspayment-successThe sanctioned delight moment.
10ReceiptSheetreceipt-sheetPrintable/shareable receipt.
11PayoutSchedulepayout-scheduleUpcoming payouts calendar.
12CardInputcard-inputPAN / expiry / CVC with correct autocomplete.
13BankAccountInputbank-account-inputRouting + account with checksum validation.
14RecurringSchedulerecurring-scheduleFrequency, end condition, preview of next 3.
14 components14 built · 0 specified

Swaps & FX

Family spec
RowComponentWhat it doesPreview
1SwapWidgetswap-widgetFrom/to with the flip. The signature component.
2RateLinerate-lineA rate with its timestamp. Never one without the other.
3RateLockrate-lockLocked rate with a countdown and expiry behavior.
4ConversionBreakdownconversion-breakdownAmount → fee → rate → recipient gets. Every line.
5CurrencyPairChartcurrency-pair-chartRate history with a period selector.
6RateTickerrate-tickerLive multi-pair ticker with value flash.
7SlippageControlslippage-controlTolerance setting with an explicit worst case.
8SwapRouteswap-routeMulti-hop path visualization.
9FxExposurefx-exposurePosition by currency with unrealized gain/loss.
9 components9 built · 0 specified

Ledger & tables

Family spec
RowComponentWhat it doesPreview
1TransactionTabletransaction-tableThe workhorse. Virtualized, sticky, priority-collapsing.
2TransactionRowtransaction-rowDesktop row.
3TransactionCardtransaction-cardThe mobile re-rank.
4TransactionDetailtransaction-detailFull detail sheet with attachments and audit trail.
5LedgerTableledger-tableDouble-entry with debit/credit columns and a balance check.
6AgingTableaging-tableAR/AP buckets, 0-30-60-90+.
7ReconciliationViewreconciliation-viewTwo-pane matcher. The match animation.
8CategoryPickercategory-pickerHierarchical with rule creation.
9FilterBarfilter-barURL-param-backed filters with resolved-value chips.
10BulkActionBarbulk-action-barSelection count + actions, safe-area aware.
11ColumnManagercolumn-managerShow/hide/reorder with drag.
12GroupPickergroup-pickerOne cut through a table, with subtotals per group.
13ExportMenuexport-menuCSV/XLSX/PDF with a stated scope.
14TableColumnstable-columnsSort and resize for a table that renders on the server.
15ColumnHeadercolumn-headerThe sortable, draggable header cell.
16PeriodGridperiod-gridThe ruled grid. Frozen panes, hidden columns, hover change, ⌘C.
17BankStatementbank-statementOpening → lines with a running balance → closing, proven against the bank's own figure.
17 components17 built · 0 specified

Statements

Family spec

**The largest gap in the market.** Nothing else has these.

RowComponentWhat it doesPreview
1StatementTablestatement-tableThe shared shell: hierarchy, periods, rules.
2StatementRowstatement-rowIndent level, subtotal, total, expand.
3ProfitAndLossprofit-and-lossP&L with period comparison and variance.
4BalanceSheetbalance-sheetAssets / liabilities / equity, with the balance check.
5CashFlowStatementcash-flow-statementOperating / investing / financing.
6StatementToolbarstatement-toolbarBasis, period, comparison, currency, consolidation.
7PeriodPickerperiod-pickerFiscal-aware. Never assumes January.
8VarianceCellvariance-cellAbsolute + percent + significance flag.
9FluxAnalysisflux-analysisPeriod-over-period explanations.
10DrilldownSheetdrilldown-sheetStatement line → the GL entries behind it.
11TrialBalancetrial-balanceAll accounts with the debit=credit proof.
12CloseChecklistclose-checklistTasks, owners, blockers, sign-off.
13ReportHeaderreport-headerEntity, statement, period, basis, currency, as-of. Every figure states its basis.
14StatementOfChangesInEquitystatement-of-changes-in-equityThe fourth statement. Equity components across, movements down.
15StatementNotesstatement-notesNumbered notes, referenced from the line they explain.
16ReportingPackagereporting-packageA board or lender pack as one object: contents, basis, review state.
16 components16 built · 0 specified

Dashboard & charts

Family spec
RowComponentWhat it doesPreview
1DashboardShelldashboard-shellResponsive grid with optional rearrange.
2KpiRowkpi-row2–4 KPI cards with aligned baselines.
3MoneyChartmoney-chartLine/area with a money axis and negative-aware baseline.
4MoneyBarChartmoney-bar-chartGrouped/stacked, zero-baseline origin, hatched negatives.
5WaterfallChartwaterfall-chartThe P&L bridge. Essential and rare.
6CategoryBreakdowncategory-breakdownRanked bars, not a pie.
7CashCalendarcash-calendarDaily heatmap of cash movement.
8CandlestickChartcandlestick-chartFor FX/crypto pairs.
9ChartLegendchart-legendInteractive, keyboard-navigable.
10ChartTooltipchart-tooltipTouch-persistent readout.
11DataTableToggledata-table-toggleEvery chart's accessible table equivalent.
11 components11 built · 0 specified

System & states

Family spec

---

RowComponentWhat it doesPreview
1EmptyStateempty-stateThree variants. Always one next action.
2ErrorStateerror-stateWith the financial reassurance sentence.
3SkeletonskeletonStructural, per-component.
4StaleIndicatorstale-indicatorLast-synced + retry.
5ToasttoastSonner, configured to our tokens.
6CommandPalettecommand-paletteMotionless. Money-aware search.
7SheetsheetVaul, configured. The mobile primary overlay.
8HoldToConfirmhold-to-confirmIrreversible actions, with accessible fallbacks.
9DensityToggledensity-togglePersisted, synced, phone-clamped.
9 components9 built · 0 specified

Domain layer

The general ledger, receivables, payables, the close, controls, consolidation and metrics. The parts you'd otherwise find only inside accounting software.

Accounting core (GL)

Family spec
RowComponentWhat it doesPreview
1JournalEntryjournal-entryDebit and credit as two columns. No signed-column variant.
2JournalEntryFormjournal-entry-formLine grid with live balance check and dimension capture.
3JournalEntryTablejournal-entry-tableAll entries, with the gapless-numbering check.
4AccountPickeraccount-pickerShows the normal balance. Blocks non-postable accounts.
5ChartOfAccountschart-of-accountsHierarchy, statement mapping, unsupported-account flags.
6AccountRegisteraccount-registerGL detail with a running balance.
7DimensionPickerdimension-pickerEntity always required; renders what the account demands.
8AdjustingEntryFormadjusting-entry-formTemplated by type. Auto-reverse defaults on for accruals.
9RecurringEntryTemplaterecurring-entry-templateTemplate editable; instances read-only.
10EntryReversalDialogentry-reversal-dialogHold-to-confirm. Never a delete.
11ScheduleTableschedule-tableOne shell, seven presets. Prepaids through debt.
12RollForwardroll-forwardOpening → movements → closing → tie. The universal shape.
13AccountTieOutaccount-tie-outEvery BS account, proven against its evidence.
14SchedulePreviewschedule-previewWhat the schedules will post, before they post.
15RevenueWaterfallrevenue-waterfallDeferred balance recognizing by future period.
16DepreciationScheduledepreciation-scheduleBook and tax in parallel. In-service date, not purchase date.
17LeaseSchedulelease-scheduleROU asset and liability on diverging curves.
18AllowanceRollForwardallowance-roll-forwardWith the methodology shown, not just the number.
18 components18 built · 0 specified

Receivables (AR)

Family spec
RowComponentWhat it doesPreview
1InvoiceForminvoice-formWith the revenue-recognition preview per line.
2InvoiceDetailinvoice-detailBalance due as the hero, not total.
3InvoiceRegisterinvoice-registerGapless-numbering check surfaced.
4CashApplicationcash-applicationThe highest-value screen in AR. Every case is a first-class path.
5PaymentSuggestionpayment-suggestionInvoice combinations summing exactly to a lump sum.
6UnappliedCashPanelunapplied-cash-panelNever revenue; net credit balances flagged as liabilities.
7CreditNoteFormcredit-note-formDistinct from a refund and from a write-off.
8CollectionsWorklistcollections-worklistPromise-to-pay as a first-class object.
9DunningTimelinedunning-timelinePer customer, not per invoice.
10CustomerStatementcustomer-statementPrintable. Print styles are first-class.
11CustomerCreditPanelcustomer-credit-panelLimit and exposure together, with hierarchy roll-up.
12SalesOrderTablesales-order-tableBacklog, visually separated from ledger-derived numbers.
13ArMetricsPanelar-metrics-panelDSO with its method stated.
13 components13 built · 0 specified

Payables (AP)

Family spec
RowComponentWhat it doesPreview
1BillFormbill-formPer-line coding, required evidence, discount ROI surfaced.
2BillDetailbill-detailSource document inline beside the coding.
3BillRegisterbill-registerAging and approval state.
4DuplicateBillAlertduplicate-bill-alertBlocking. Duplicate payment is one of the most common AP losses.
5ThreeWayMatchthree-way-matchLine-level variances, not header totals.
6MatchExceptionQueuematch-exception-queueThe clerk's worklist.
7ApprovalChainapproval-chainSegregation of duties enforced. Approvals bind to a version.
8ApprovalInboxapproval-inboxMobile-first, document inline.
9PaymentRunBuilderpayment-run-builderShows the cash balance remaining after the run.
10PaymentRunPreviewpayment-run-previewHold-to-confirm. Partial failure is a first-class state.
11CashRequirementscash-requirementsDue in 7/14/30 vs. available, payroll broken out.
12VendorMastervendor-masterBank details versioned, never overwritten.
13BankDetailChangeAlertbank-detail-change-alertThe fraud-prevention surface.
14ExpenseCaptureexpense-captureCamera-first, policy violations shown at entry.
15CardTransactionMatchcard-transaction-matchMatched to receipts, never re-entered.
16UninvoicedReceiptsReportuninvoiced-receipts-reportGR/IR aging. The evidence for the period-end accrual.
16 components16 built · 0 specified

Close, controls & consolidation

Family spec

**See also:** `#69 TrialBalance` and `#70 CloseChecklist` in [statements](statements.md). Conceptually they're the same family.

RowComponentWhat it doesPreview
1PeriodStatusperiod-statusState, provenance, and the next action.
2CutoffWarningcutoff-warningInline, with both legitimate remedies named.
3CloseStatusclose-statusThe seven-section gated pipeline.
4AuditTrailaudit-trailField-level diffs on every financial object.
5EvidencePanelevidence-panelInline rendering, content hash, never deleted.
6IntegrityCheckPanelintegrity-check-panelEleven continuous assertions. A failure owns the screen.
7MaterialityPolicymateriality-policyBoth thresholds must be exceeded. Threshold displayed.
8ApprovalPolicyEditorapproval-policy-editorSeparate-approver shown as fixed, not a toggle.
9RoleMatrixrole-matrixController ≠ Treasurer. Admin cannot transact.
10SubsequentEventLogsubsequent-event-logAdjusting vs. non-adjusting, decision recorded.
11RestatementBannerrestatement-bannerMarks a restated comparative everywhere.
12AuditorModeauditor-modeRead-only server-side, scope immutable, itself audited.
13SamplingToolsampling-toolMethod and seed recorded, so the selection is reproducible.
14EvidenceBundleevidence-bundleEntries + documents + approvals + trail, with a manifest.
15EntitySelectorentity-selectorExplicit scope. Standalone vs. consolidated visually distinct.
16ConsolidationViewconsolidation-viewEntity columns, eliminations, NCI, group total.
17IntercompanyMatrixintercompany-matrixMust net to zero. Break types named.
18EliminationEntryelimination-entryConsolidation-level only, boundary visible.
19NciPanelnci-panelOn both statements.
20TranslationSummarytranslation-summaryRates by type, with sources and methodology.
21CtaRollForwardcta-roll-forwardIts own equity line, never buried.
22FxRevaluationfx-revaluationMonetary items only, derived from classification.
23FxGainLossPanelfx-gain-loss-panelRealized and unrealized never combined.
24RateTablerate-tableRate type is not optional. A missing rate blocks.
24 components24 built · 0 specified

Metrics & analysis

Family spec
RowComponentWhat it doesPreview
1MetricDefinitionmetric-definitionEvery metric requires one. Formula with values substituted.
2NonGaapReconciliationnon-gaap-reconciliationEBITDA below net income, every adjustment named.
3MrrBridgemrr-bridgeThe movement, not a single number with a percentage.
4BudgetVsActualbudget-vs-actualPolarity-aware, materiality-filtered, versions tracked.
5ForecastTableforecast-tableProjections dashed and labeled everywhere.
6CovenantMonitorcovenant-monitorThe contractual definition, not the generic one.
7KpiHealthStripkpi-health-stripProvisional marking for pre-close numbers.
8RevenueTrackerrevenue-trackerRevenue by stream, with mix, growth and concentration.
9ExpenseTrackerexpense-trackerSpend by category on three bases, with polarity derived per row.
10DriverModeldriver-modelThe inputs a forecast is built from, and what they produce.
11ScenarioComparescenario-compareScenarios side by side, all measured against the base.
12PlByDimensionpl-by-dimensionThe P&L cut by department, entity or product.
13RatioAnalysisratio-analysisLiquidity, leverage and efficiency ratios, each with its formula and inputs.
13 components13 built · 0 specified

Install any of them in two commands

The source is copied into your repository and you own it. There is no runtime dependency on this site.

Step 1 — once

Point components.json at the registry.

components.json
{ "registries": { "@lopifi": "https://lopifi.com/r/{name}.json" } }

Step 2 — per component

Install by name. The source lands in your repository.

terminal
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/balance-card

Agents can skip the file entirely and connect to the MCP server, which serves the spec for all 195 entries and the source for the 195 that are built.

Common questions

What is Lopifi?
Lopifi is a free, MIT-licensed React component system for accounting and finance interfaces: 195 built components and 0 more specified, across 14 families, from money primitives and ledger tables to financial statements, the month-end close and controls. Each one is written up as a spec before it's coded, and the spec ships with it.
How do I install a Lopifi component?
Point `components.json` at the registry once — `{ "registries": { "@lopifi": "https://lopifi.com/r/{name}.json" } }` — then run `npx shadcn@latest add @lopifi/theme` once and `npx shadcn@latest add @lopifi/balance-card` for each component you want. The source lands in your repository and you own it; there is no runtime dependency on this site.
What makes an accounting component different from a generic UI component?
The accounting rules are built in. Money is a minor-unit integer plus a currency code. A negative is a parenthesis or a minus depending on the statement. Zero, null, unknown, redacted and loading are five different renders. Every figure carries an entity, a basis, a period and an as-of date.
Can I use these components with an AI coding agent?
Yes, they're built for it. The MCP server at https://lopifi.com/api/mcp serves the spec for all 195 catalog entries and the full source for the 195 that are built, so an agent installs a correct component instead of generating a money primitive from scratch.

Release notes

Get an email when a component ships

195 of 195 are built.

  • One email as each family ships
  • One when a change needs a migration note

We don’t rent the list, and asking takes you off it. We use this to reply and to send the updates you asked for. To unsubscribe, reply to any email or write to hello@lopifi.com. See Privacy.

Start with the theme

npx shadcn@latest add @lopifi/theme