Steps
Show the current position and progress in a multi-step task.
Usage guide
#Show ordered workflows, such as applications or setup. Use Tabs for independent view switching.
Set steps and the current position
currentis zero-based by default.Set the starting number and completion state
Setting
startIndexto 1 makes both step numbers andcurrentstart at 1. Applycompletewhen the whole process finishes.Handle navigation requests
Enable
clickableand readselected.detail.index. Validate the current step before changingcurrent.
Examples
#Feature examples
#Choose a feature from 22 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-steps>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
number | 0 | Index of the current step. | |
boolean | false | Allow user selection and emit the selected event. | |
boolean | false | Mark every step as complete. | |
"horizontal" | "vertical" | "horizontal" | Arrange steps horizontally (horizontal) or vertically (vertical). | |
"small" | "medium" | "medium" | Component size. | |
number | 0 | Starting step number. |
Slots
| Slot | Description |
|---|---|
| Component body or child items. |
<sy-step>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
string | "" | Description shown below the step title. | |
boolean | false | Block user interaction and keyboard focus. | |
boolean | false | Indicate that processing is in progress. | |
"finish" | "current" | "wait" | "error" | "none" | "none" | none derives the state from the current index. Set an individual state with finish, current, wait, or error. | |
boolean | false | Legacy compatibility property. Use size="small" to change the size. | |
boolean | false | Allow user selection and emit the selected event. | |
number | 0 | Item index calculated by the parent. | |
number | 0 | Index of the current step. | |
"small" | "medium" | "medium" | Component size. | |
"finish" | "current" | "wait" | "error" | "none" | "none" | Completion state passed down by the parent Steps component. | |
"finish" | "current" | "wait" | "error" | "none" | "none" | Displayed step state, calculated from status and current. | |
"horizontal" | "vertical" | "horizontal" | Horizontal or vertical layout, passed down by the parent Steps component. | |
boolean | false | Hide the connector after the last step. Set by the parent. |
Events
| Event | Detail | Description |
|---|---|---|
CustomEvent<{ index: number; step: HTMLSyStepElement }> | Requested step. Assign its index to the parent current after app validation. |
Slots
| Slot | Description |
|---|---|
| Component body or child items. |