# Stepper

> Where someone is in a few steps, and how many are left. The steps in a row, a short line between each.

| | |
|---|---|
| Kind | component |
| Contract | `review` · [stepper.contract.yaml](https://github.com/Runceanu/rost/blob/master/contracts/stepper.contract.yaml) |
| Guidance | `proposed` |
| Source | [Figma 744:31](https://www.figma.com/design/1Zy0wiWKXQAvsfDBX3KR0d/UI-Kit-v01?node-id=744-31) · read 2026-11-16 · frozen 2026-11-16 |
| Implemented in | nowhere yet |

## Install

It lands in `src/rost/stepper/`, with what it needs and its contract:

```sh
npx github:Runceanu/rost add stepper
```

Then import `src/rost/fonts.css` and `src/rost/tokens.css` once, at the root of the app. More on this in [Install](https://rost.build/docs/install.md).

## Props

| Prop | Type | Values | Default |
|---|---|---|---|
| `children` | slot |  |  |

## Anatomy

- `root`: An `<ol aria-label="Progress">` in a row: each Step, then a connector, 8px apart.
- `connector`: A 24px line between two steps, in the tertiary grey. Decoration: hidden from screen readers.

## When to use

- **A few steps in order.** Three to five steps that build on each other: setting up a vault, closing a year.

## When not to use

- **Choosing a view.** Moving between views in any order. That's **Tabs**.
- **Long progress.** Something with many steps or a count. That's **Progress**.

## Behaviour

It lays out the Steps and the lines between them. Each Step knows whether it's done, current or still to come.

## Accessibility

- **Element**: `<ol>`, so the steps are counted. The current Step has `aria-current="step"`.
- **Name**: Progress, or what the steps are for.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `spacing/gap/none` | `0px` |
| `spacing/gap/small` | `8px` |
| `spacing/outline/small` | `1px` |
| `spacing/size/small` | `24px` |
| `stepper/connector` | `#3a3a3a` |

See it live, with every value of every variant: [rost.build/components/stepper/](https://rost.build/components/stepper/)
