Stepper
Displays sequential steps
Demo
Horizontal
Vertical
Simplified
API
Tag
| Name | Description |
<s-stepper>
|
Custom Element |
Attributes
| Name | Value | Required | Description |
stepitems |
String |
|
Stringified JSON array of step item objects. Each item can include an optional |
vertical |
Boolean attribute |
Displays the steps vertically. |
|
simplified |
Boolean attribute |
Displays the simplified stepper variant. |
Properties
| Name | Value | Required | Description |
stepItems |
String |
|
Stringified JSON array of step item objects. Each item can include an optional |
vertical |
Boolean attribute |
Displays the steps vertically. |
|
simplified |
Boolean attribute |
Displays the simplified stepper variant. |
Demo
API
Tag
| Name |
<SStepper>
|
Props
| Name | Value | Required | Description |
stepItems |
Array |
Array of step item objects. Each item can include an optional |
|
vertical |
Boolean |
Displays the steps vertically. |
|
simplified |
Boolean |
Displays the simplified stepper variant. |
Skylab React links
Typescript
Exported types
Guidelines
Creating steps
The individual step items within the Stepper component are set via an array of objects.
Substeps
Any step can include a substeps array. Each substep is an object with a required label and an optional completed flag. Completed substeps show a check in the marker.
The substeps list is only visible for steps that are completed or active. For steps that are still upcoming, substeps stay in the DOM but are hidden so the flow stays uncluttered.
The simplified variant shows only the current step label and count; it does not render substeps.
To pass the step items to the s-stepper component, you can either set
the stepItems property equal to your array of objects, as in the code sample above, or you can stringify your array and set the stepitems
attribute.
Design
Design resources can be found on the Skylab design documentation site: skylab.avalara.com