

Every state


default


hover


focus


open


excl-prices


reverse-charge


gbp
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| heading | string | "Totals and VAT" | Section heading. |
| lines | { label: string; amount: number; rate: number }[] | – | The order's lines, grouped per rate. Amounts in minor units. |
| pricesInclude | "incl" | "excl" | "incl" | Whether the line amounts include VAT (shop prices) or exclude it (trade prices). |
| taxName | string | "VAT" | Name for the tax: VAT, BTW, MwSt., TVA. |
| rateNames | Record<string, string> | { "21": "Standard", "9": "Reduced", "0": "Zero" } | Names shown beside each rate. |
| reverseCharge | { vatId: string; note: string } | null | null | Trade sale with reverse charge: no VAT, one 0% row and the note with the customer's VAT ID. Null: VAT charged. |
| explainer | string | null | "VAT is worked out once per rate…" | How the VAT is worked out, behind a disclosure. Null hides it. |
| defaultOpen | boolean | false | Start with the explainer open. |
| currency | string | "EUR" | ISO 4217 code. |
| locale | string | "en-IE" | Formats the amounts and rates. |
| className | string | – | Extra classes on the section. |
More order summaries
All 8order-summary-08 is in UI ProGet UI Pro, €199


