Skip to content
Cynco UI

Accounting · Sales

InvoiceTotalsPanel

The document totals block: Subtotal, Discount (n%), the tax line(s), Total, and Deposit and Balance Due when a deposit is set.

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

Example

Use

Under the line items in the invoice and quotation builders.

Props

rows ({label, value, bold, accent, negative}), which you can build with the exported buildSalesTotals({subtotal, discount, discountPercent, taxes, deposit}), and currency; className and native dl props.

Notes

A bg-card bordered panel with text-tertiary-foreground labels. Total is semibold above a table-row-divider, and Balance Due is the one text-primary accent. Responsive: Label and value wrap onto two lines rather than overlapping in a narrow column.

Source Demo source Markdown