# OrderSummary

> What a checkout is buying: the lines and the price breakdown.

```ts
import { OrderSummary } from "@sdxc/ui/commerce";
```

Renders the heading, lines and breakdown. A collapsible summary is a `<details>` whose
summary row shows on narrow screens only; from 56rem the row hides and the content shows
whether or not the disclosure is open, through `::details-content`.

## Examples

```tsx
<OrderSummary collapsible lines={<ul>…</ul>} breakdown={<PriceBreakdown>…</PriceBreakdown>} total="€48.00" labels={{ show: "Show order summary", heading: "Order summary" }} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `lines` | `RemixNode` | The lines, usually a `<ul>` of `CartLine`. |
| `breakdown` | `RemixNode` | The charges, usually a `PriceBreakdown` ending in its total. |
| `total` | `RemixNode` | The order total, shown on the folded row so a phone sees it before unfolding. |
| `collapsible?` | `boolean` | Folds the summary below 56rem. @default false |
| `open?` | `boolean` | Starts a collapsible summary unfolded on a phone. @default false |
| `labels` | `Labels` |  |

Also accepts everything in `Omit<TagProps<"section">, "children">`.

