

Every state


default


hover


focus


shipping-later


free-delivery


blocked


gbp
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "order-summary" | Base for the ids inside; the blocked reason hangs off it. |
| heading | string | "Order summary" | Card heading. |
| itemCount | number | 3 | Units in the cart, said beside the heading. |
| subtotal | number | 9250 | Sum of the lines in minor units. |
| shipping | number | null | 495 | Delivery in minor units; 0 is free. Null: calculated at next step, and the total excludes delivery. |
| discount | { label: string; amount: number } | null | { label: "WINTER10", amount: 925 } | A discount on the order. Null: no row. |
| vatIncluded | number | null | 1531 | The VAT inside the total, in minor units. Null: no line. |
| checkoutLabel | string | "Go to checkout" | Button text. |
| checkoutHref | string | "/checkout" | Where the button goes. |
| blockedReason | string | null | null | Why checkout can't go ahead; the button is disabled and the reason shows under it. Null: the button works. |
| continueHref | string | null | "/shop" | Continue shopping link. Null hides it. |
| note | string | null | "Free returns within 30 days" | One reassurance line at the foot. Null hides it. |
| currency | string | "EUR" | ISO 4217 code. |
| locale | string | "en-IE" | Formats the amounts. |
| className | string | – | Extra classes on the card. |


