---
component: zui-step-flow
package: "@zywave/zui-step-flow"
elements: ["zui-step-flow", "zui-step-flow-indicator", "zui-step-flow-indicator-item", "zui-step-flow-content", "zui-step-flow-content-item", "zui-step-flow-footer"]
title: "Step Flow"
description: "Guide users through a sequence of steps to complete a multi-step process."
deprecated: true
relatedElements: ["zui-step-flow-indicator", "zui-step-flow-indicator-item", "zui-step-flow-content", "zui-step-flow-content-item", "zui-step-flow-footer"]
source: "https://booster.zywave.dev/design-system/components/step-flows/"
---

<!-- Generated by scripts/node/generate-llm-docs.mjs from packages/components/zui-step-flow/dist/llm/zui-step-flow.guidelines.md and packages/components/zui-step-flow/dist/custom-elements.json. Do not edit; re-run npm run docs:llm. -->

# Step Flow (`<zui-step-flow>`)

**Deprecated:** `<zui-step-flow>` is deprecated. Do not use it in new work.

Guide users through a sequence of steps to complete a multi-step process.

## Usage guidelines

### Usage

Step Flow guides users through a sequential, multi-step process by displaying a progress indicator, focused step content, and navigation controls. Use it when a workflow must be completed in a defined order and the total number of steps is known upfront.

##### When to use Step Flow

- The workflow consists of a fixed, ordered sequence of steps (e.g., 3–10 steps)
- Users need to track their position within a process
- Each step requires focused attention and should not be skipped

##### Don't use Step Flow when

- The number of steps is dynamic or unknown — use a different layout pattern instead
- Steps can be completed in any order — use Tabs instead
- The process is a single long form — use a scrollable page with sections instead

### Anatomy

1. **Complete icon**: A checkmark (✓) displayed on a completed indicator item.
2. **Step label**: The text displayed inside each indicator item, identifying that step.

### Behavior

#### Navigation

- Step Flow listens for three events dispatched on the root element: `nextstep`, `previousstep`, and `setstep`
- Dispatch `nextstep` or `previousstep` to advance or retreat one step at a time
- Dispatch `setstep` with a `detail` value equal to the target step index (0-based, adjusted automatically when an intro slide is present) to jump directly to a step
- Clicking a **completed** indicator item automatically dispatches `setstep` internally — no application code required

#### Intro and end slides

- The step counter compensates for the intro slide offset so indicator items align correctly to the numbered steps

### Content guidelines

#### Step labels

##### Effective step labels are

- Concise: 1–3 words maximum
- Noun-based: describe the subject of the step ("Account setup", "Payment details")
- Parallel: all labels use the same grammatical form

##### Writing style

- Use sentence case: "Account details" not "Account Details"
- Avoid verbs as labels unless all labels are verb phrases

#### Title

- Use the `title` slot to name the overall workflow (e.g., "Set up your account")
- Keep the title short enough to display on a single line at all supported breakpoints

### Responsiveness

#### Mobile considerations

- The wrapper padding reduces progressively: 60px at medium breakpoints, 30px at small, 15px at mobile
- Indicator items shrink at mobile to 15px × 15px from 20px × 20px at small breakpoints and above

### Best practices

- **Do:** Use Step Flow when the process has a fixed, known number of steps that must be completed in a set order.
- **Don't:** Don't use Step Flow when users can navigate steps in any order — use Tabs instead.
- **Do:** Mark each indicator item as completed as the user successfully finishes each step.
- **Don't:** Don't leave indicator items in the default state after the user has moved past them — the progress indicator loses its value if it never reflects what the user has accomplished.

### Accessibility

#### Screen reader announcements

- When a step changes, focus should be programmatically moved to a heading or the top of the new step content so screen reader users know a transition has occurred

#### ARIA requirements

- Add `aria-current="step"` to the active indicator item to communicate the current position

### Alternate considerations

Consider these alternatives when Step Flow isn't the right choice.

##### When to use `<zui-expander>` instead

- The content can be completed in any order, or sections are independent — Expander lets users open and close sections without enforcing a sequence

##### When to use `<zui-tabs>` instead

- The workflow has distinct, independently completable sections — Tabs allow free navigation between sections without implying a required order

##### When to use a `<zui-dialog>` instead

- The multi-step process is short (2–3 steps) and occurs as a focused overlay — a Dialog with a stepped interior keeps users in context without a full-page takeover

## API reference

If this section and the content above disagree, this section is correct.

### `<zui-step-flow>`

Class: `ZuiStepFlow`

> **Deprecated.**

#### Attributes

- `step` (reflects, default: `0`): `number`
- `orientation` (default: `'horizontal'`): `string`

#### Properties

- `stepFlowIndicator` (default: `undefined`): `ZuiStepFlowIndicator | undefined`
- `stepFlowContent` (default: `undefined`): `ZuiStepFlowContent | undefined`

### `<zui-step-flow-indicator>`

Class: `ZuiStepFlowIndicator`

> **Deprecated.**

#### Attributes

- `step` (default: `0`): `number`
- `hide` (default: `false`): `boolean`
- `orientation` (default: `'horizontal'`): `string`

#### Events

- `setstep`: `CustomEvent`

### `<zui-step-flow-indicator-item>`

Class: `ZuiStepFlowIndicatorItem`

> **Deprecated.**

#### Attributes

- `active` (default: `false`): `boolean`
- `complete` (default: `false`): `boolean`
- `orientation` (default: `'horizontal'`): `string`

#### Properties

- `index` (default: `undefined`): `number | undefined`

### `<zui-step-flow-content>`

Class: `ZuiStepFlowContent`

> **Deprecated.**

#### Attributes

- `step` (default: `0`): `number`

### `<zui-step-flow-content-item>`

Class: `ZuiStepFlowContentItem`

> **Deprecated.**

### `<zui-step-flow-footer>`

Class: `ZuiStepFlowFooter`

> **Deprecated.**
