# CheckoutLayout

> The frame of a checkout page: the form with its steps on one side and the order summary on the other, held in view as the form scrolls.

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

Renders one column on a phone, summary then steps then form. From 56rem the form takes the
flexible column and the summary a 24rem column on a tinted band, sticky to the top so the
total stays in view; the whole frame stops at 70rem.

## Examples

```tsx
<CheckoutLayout steps={<StepIndicator … />} summary={<OrderSummary collapsible … />}><form method="post">…</form></CheckoutLayout>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `steps?` | `RemixNode` | The progress through checkout, such as a step indicator. |
| `summary` | `RemixNode` | The order, usually a collapsible `OrderSummary`. |
| `children` | `RemixNode` | The form of the current step. |
| `aside?` | `RemixNode` | Under the summary, such as payment marks or a returns promise. |

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

