BankLedgerHeader
The header over a bank account's ledger: account name, number and linked GL code, the statement tie-out, book vs statement balance, the month stepper and the month's totals.
import { BankLedgerHeader } from "@cynco-labs/ui"; Example
import { BankLedgerHeader } from "@cynco-labs/ui";
export default function BankLedgerHeaderDemo() {
return (
<BankLedgerHeader
account={{
name: "Maybank Current Account",
number: "•••• 4417",
glCode: "1000-001",
institutionName: "Malayan Banking Berhad",
currency: "MYR",
}}
month="2026-10"
tieOut={{ status: "off", difference: -1240.0 }}
bookBalance={198465.0}
statement={{ date: "2026-10-28", balance: 197225.0, unreconciledDifference: -1240.0 }}
notCounted={[
{
label: "2 USD lines not counted",
title: "2 lines in USD this month carry no MYR amount, so the balance leaves them out.",
},
]}
transactionCount={48}
credits={96420.0}
debits={80355.0}
canNext={false}
/>
);
} Use
Above the bank/GL register for one bank account and month.
Props
account { name, number?, glCode?, institutionName?, currency }, month (YYYY-MM), tieOut ({status:'tied',statementClosing} | {status:'off',difference} | {status:'none',basis}), bookBalance, statement?, notCounted?, transactionCount, credits, debits, canPrev?, canNext?, onMonthChange?, onDownload?, className? (merged on the root) and native props.
Notes
The GL code sits in a mono tag. Credits and debits are neutral figures; an unreconciled gap gets an amber warning glyph rather than coloured text. CSV export is a skeleton icon button (wire onExport yourself). Responsive: balances, the tie-out chip and the month stepper all wrap on narrow containers.