Tally UI

OrderSummary

Full order receipt with subtotal, tax, total, and payment breakdown

Import

import { OrderSummary } from '@tallyui/components';

Usage

<OrderSummary
  subtotal="$1,199.98"
  tax="$120.00"
  taxLabel="GST"
  total="$1,319.98"
  payments={[
    { label: 'Cash tendered', amount: '$1,400.00' },
    { label: 'Change due', amount: '$80.02' },
  ]}
/>

Displays a complete order summary with subtotal, optional tax, and total lines. When payments are provided, they appear in a separate section below the total. Accepts header and footer slots for additional context like customer info or action buttons.

Uses OrderSummaryLine internally for each row.

Props

PropTypeDefaultDescription
subtotalstringrequiredFormatted subtotal (e.g. "$1,199.98")
taxstring---Formatted tax amount (omits tax line if not set)
taxLabelstring'Tax'Label for the tax line
totalstringrequiredFormatted total
paymentsOrderSummaryPayment[]---Payment breakdown lines
headerReactNode---Header slot (e.g. customer info)
footerReactNode---Footer slot (e.g. action buttons)
classNamestring---Override container styles

OrderSummaryPayment

interface OrderSummaryPayment {
  label: string;
  amount: string;
}

Live demo

On this page