Navigation
Steps <pm-steps>
Steps (wizard / checkout progress). Steps before current are complete.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
current | number | 0 | Index (0-based) of the current step. |
orientation | 'horizontal' | 'vertical' | horizontal | Layout and arrow-key direction: horizontal or vertical. |
clickable | boolean | false | Completed steps can be revisited (emits pm-change). |
label | string | Progress | Accessible name (and visible label where the component shows one). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Events
| Event | React / Svelte prop | Description |
|---|---|---|
pm-change | onPmChange | A step was chosen (only with clickable). |
Slots
| Slot | Description |
|---|---|
(default) | pm-step elements. |
<pm-step>
One step in a <pm-steps> progress indicator.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
icon | string | — | Registered icon name (see registerIcons); an icon slot overrides it. |
label | string | — | Accessible name (and visible label where the component shows one). |
description | string | — | Supporting text under the title. |
status | 'complete' | 'current' | 'upcoming' | 'error' | — | Override the derived status (e.g. error). |
disabled | boolean | false | Not interactive (and not submitted, for form controls). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Slots
| Slot | Description |
|---|---|
icon | Replaces the number in the marker. |