# OrderSteps

> An order on its way: the steps from placed to delivered as a timeline whose rows are done, current or still to come, and an island that follows a text stream of progress so the steps, the headline, the arrival estimate and any map marker on the page move live.

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

Renders the steps as a vertical timeline: a filled dot and rail for each done step, a ring
that pulses on the current one, and hollow dots for the rest.

## Examples

```tsx
<OrderSteps current="preparing" steps={[{ id: "placed", label: "Order placed" }, { id: "preparing", label: "Being prepared" }, { id: "delivered", label: "Delivered" }]} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `steps` | `Step[]` |  |
| `current` | `string` | The id of the step reached; every earlier one is done. |

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


## Also exported

- `orderStepState`
- `parseOrderLine`
