Skip to content
Cynco UI

Accounting · Sales

InvoiceSummaryRail

The always-visible total bar under the builder: Subtotal, Discount and Tax figures, a large Total and a caret that opens the full breakdown above it, plus trailing actions.

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

Example

Use

Sticky footer of the invoice and quotation builders, so the amount stays visible while the preview is collapsed.

Props

rows (as for InvoiceTotalsPanel), currency, actions (buttons), defaultOpen; className and native div props.

Notes

The secondary figures hide through a container query when the rail is too narrow, so the total never truncates. When there are no rows, it reads 'Add a line item to see the total'. Responsive: The Subtotal/Discount/Tax figures show only from 36rem of container width, and the actions wrap under the total when space runs out.

Source Demo source Markdown