# <stepper>

A Material stepper that walks through numbered steps, vertically or horizontally.

Category: Forms and input.

```ham
<stepper id="signup">
    <step title="Account"
          state="complete">
        <text>ana@example.com</text>
    </step>
    <step title="Profile"
          state="editing">
        <text>Add a photo and a short bio.</text>
    </step>
    <step title="Done"/>
</stepper>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/stepper-light.webp), [dark](https://hypeapps.dev/img/tags/stepper-dark.webp).

## Attributes

| Name | What it does | Default |
|---|---|---|
| `orientation` | Stepper orientation (vertical, horizontal) | `vertical` |

## Commands

| Name | What it does |
|---|---|
| `goto` | Go to a step. |
| `next` | Next step. |
| `prev` | Previous step. |
| `reset` | Back to the first step. |

## Readings

| Name | What it does |
|---|---|
| `complete` | Whether the last step is reached. |
| `index` | The current step, from 0. |

Any tag also takes gestures: `@on.tap`, `@on.longpress`, `@on.doubletap` and `@on.swipeleft` (and right, up and down). `@click` runs on a tap too.

## Related tags

- [`<step>`](https://hypeapps.dev/docs/reference/step.md): One step in a stepper: a title, an optional subtitle and a state that sets its icon and color.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<button>`](https://hypeapps.dev/docs/reference/button.md): A tappable button that runs an action: a fetch, a navigation or a statement.
- [`<checkbox>`](https://hypeapps.dev/docs/reference/checkbox.md): A checkbox with a label; its state goes into a variable by name.
- [`<chip>`](https://hypeapps.dev/docs/reference/chip.md): A compact chip: a label, a filter that toggles, a single choice in a set, or an action.
- [`<color-picker>`](https://hypeapps.dev/docs/reference/color-picker.md): A color picker: a hue ring round a disc, with swatches; the chosen color goes into a variable.
- [`<data-cell>`](https://hypeapps.dev/docs/reference/data-cell.md): One cell of a data table row.
- [`<data-column>`](https://hypeapps.dev/docs/reference/data-column.md): A column heading of a data table.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
