Content
- Title each stage with what it asks for, in sentence case: Add the logger.
- Name the step it returns to in the back label: Back to Site.
- Match the count to the tracker’s steps, so the two never disagree.
The title row for one stage of a flow, carrying the step count and the way back out.
Step through with Next and the back arrow, with or without a tracker above.
<WildStepHeader
:step="2"
:total="4"
backLabel="Back to Site"
@back="goBack"
>
Add the logger
</WildStepHeader>The count is read as part of the heading: “Step 2 of 4, Add the logger”. When the step number changes, focus moves to the new title.
| Key | What it does |
|---|---|
| Tab | Moves to the back button. |
| Shift + Tab | Reaches the back button after a step change. |
| Enter / Space | Goes back one step. |
| Prop | Type | Default | Description |
|---|---|---|---|
| #default | slot | — | The stage title. |
| step | number | — | 1-based, as printed. Omit for no count. |
| total | number | — | Step count, printed after the step. |
| hideCount | boolean | false | Hides the count line; focus still follows the step. |
| @back | () => void | — | Adds the back button. |
| backLabel | string | 'Back' | Names the back button for screen readers. |
| backDisabled | boolean | false | Disables the back button. |
| as | 'h1' | 'h2' | 'h3' | 'h2' | Heading level. |
| id | string | — | Heading id, for the form’s aria-labelledby. |
| focusOnChange | boolean | true | Focuses the title when the step number changes. |
| Token | Value | Where it lands |
|---|---|---|
| --global-neutral-grey-1300 | #0A090B | Title. |
| --global-neutral-grey-1000 | #4F4D55 | Step count. |
| --global-neutral-grey-900 | #7F7D83 | Back arrow at rest. |
| --global-neutral-grey-1200 | #1D1C20 | Back arrow on hover and press. |
| --global-neutral-grey-300 | #F1F1F1 | Back button hover fill. |
| --global-neutral-grey-400 | #ECECED | Back button press fill. |
| --global-neutral-grey-800 | #ADACB0 | Back arrow when disabled. |
| --global-blue-1000 | #1877F2 | Back button focus ring. |