Progress stepper
On this page
Importing
Add rh-progress-stepper to your page with this import statement:
<script type="module">
import '@rhds/elements/rh-progress-stepper/rh-progress-stepper.js';
</script>
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
To learn more about installing RHDS elements on your site using an import map read our getting started docs.
Usage
<rh-progress-stepper>
<rh-progress-step state="complete"
description="This step has been completed successfully">
Complete Step
</rh-progress-step>
<rh-progress-step state="warn"
description="This step has a warning that needs attention">
Warning Step
</rh-progress-step>
<rh-progress-step state="fail"
description="This step has failed and needs to be retried">
Failed Step
</rh-progress-step>
<rh-progress-step state="active"
description="Currently working on this step">
Active Step
</rh-progress-step>
<rh-progress-step description="This step is not yet started">
Inactive Step
</rh-progress-step>
</rh-progress-stepper>
<script type="module">
import '@rhds/elements/rh-progress-stepper/rh-progress-stepper.js';
</script>
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
rh-progress-stepper
A progress stepper conveys the steps necessary to complete a process or task, and the status of each step. Steps have titles and descriptions; and each step can be in one of a number of possible states:
- inactive (yet to be performed)
- active (currently being performed)
- warn (succeeded, but with warnings)
- fail (failed to occur)
Or a custom state, set using the
icon
attribute.
Slot Name | Summary | Description |
---|---|---|
|
Use this slot for |
Attribute | DOM Property | Description | Type | Default |
---|---|---|---|---|
vertical-at |
verticalAt |
Makes the element |
|
|
orientation |
orientation |
Sets the orientation of the progress stepper
|
|
|
compact |
compact |
Makes element display as |
|
|
Token | Copy |
---|---|
--rh-color-border-strong
|
|
--rh-color-text-primary
|
|
--rh-length-xl
|
|
--rh-size-icon-02
|
|
--rh-font-weight-body-text-medium
|
|
--rh-color-border-subtle
|
|
--rh-length-2xl
|
|
--rh-length-xs
|
|
--rh-length-lg
|
|
--rh-color-status-note
|
|
--rh-color-status-success
|
|
--rh-color-yellow-50
|
|
--rh-color-yellow-30
|
|
--rh-color-yellow-60
|
|
--rh-color-yellow-20
|
|
--rh-color-status-danger
|
|
rh-progress-step
A progress step represents a single step in a progress stepper. Each step can have different states and may include an icon, label, and description. Steps can also be linked to URLs.
Slot Name | Summary | Description |
---|---|---|
|
A short title for the step, which also serves as the step's accessible name |
|
icon |
custom icon for the step |
Overrides the |
description |
Elaborative description for the step |
Rich HTML content can be slotted here , to override the (plain text) |
Attribute | DOM Property | Description | Type | Default |
---|---|---|---|---|
state |
state |
Sets the state of the progress step
|
|
|
description |
description |
Sets the description text for the progress step
Overridden by the |
|
|
icon |
icon |
Custom icon for the step. Overridden by the |
|
|
icon-set |
iconSet |
Icon set for the |
|
|
href |
href |
Sets a URL to make the step clickable |
|
|
Event Name | Description |
---|---|
fired |
Token | Copy |
---|---|
--rh-color-text-primary
|
|
--rh-length-5xl
|
|
--rh-color-text-secondary
|
|
--rh-font-family-body-text
|
|
--rh-font-size-body-text-md
|
|
--rh-border-width-md
|
|
--rh-color-surface-lightest
|
|
--rh-color-surface-darkest
|
|
--rh-color-gray-50
|
|
--rh-color-gray-40
|
|
--rh-color-interactive-primary-hover
|
|
--rh-font-weight-body-text-regular
|
|
--rh-font-size-body-text-xs
|
|
--rh-color-status-note
|
|
--rh-color-status-success
|
|
--rh-color-yellow-50
|
|
--rh-color-yellow-30
|
|
--rh-color-yellow-60
|
|
--rh-color-yellow-20
|
|
--rh-color-status-danger
|
|
--rh-font-weight-body-text-medium
|
|
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.