Skip to content
Cynco UI

Accounting · Ledger

JournalLineEditor

The spreadsheet-style debit/credit grid of a journal entry, with an account picker in each Account cell, line description, grouped amount inputs and Add line.

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

Example

Use

Inside the journal entry form, above the balance bar, for creating or editing a manual journal.

Props

lines [{ key, accountId?, accountCode?, accountName?, description?, debitAmount?, creditAmount? }], accounts (picker list), recentIds?, fieldErrors? keyed ${key}.accountId, onLinesChange?, className? (merged on the root) and native props.

Notes

An AI-suggested but unconfirmed account (code with no id) shows a dashed border and an amber warning glyph. Remove is a skeleton icon button, disabled at two lines (double-entry minimum).

Source Demo source Markdown