Skip to content
Cynco UI

Accounting · Reports

ProfitLossStatement

Profit & loss statement: section headers, indented account lines, section totals, Gross profit / Operating profit subtotals and Net Income, single-period or comparative.

import { ProfitLossStatement } from "@cynco-labs/ui";

Example

Use

The P&L report page, monthly or YTD; pass priorPeriod for the Current | Prior | Variance | % layout.

Props

period, rows (StatementRow: {key, kind: heading|section-header|account|section-total|line|subtotal|grand-total, label, accountCode?, values [current, prior?], negate?, variance?, variancePct?}); optional priorPeriod, description, currency; plus className and native element props (spread on the root).

Notes

Prior column in text-tertiary-foreground. Responsive: bespoke container-query ladder on surfaces.tray; Variance/% drop below 32rem and the (MYR) suffix below 28rem, account names wrap.

Source Demo source Markdown