Stepper
Stepper
Component demo
Interactive example
<ic-stepper><ic-stepheading="Order coffee"type="completed"></ic-step><ic-stepheading="Pay for order"type="current"></ic-step><ic-stepheading="Collect"type="disabled"></ic-step></ic-stepper>
Step details
Props
All components also accept native properties supported by the DOM, such asclassName
and
style
.
|
|
|
|
|---|---|---|
|
|
The title of the step within the stepper. |
|
|
|
Words within the component that can be replaced to translate the component into a different language |
|
|
|
The status of the step. Use this prop to display a status message on the step if it is required or optional. |
|
|
|
Additional information about the step. Use this prop to override the default step status messaging displayed when selecting a step type or step status. |
|
|
|
The state of the step within the stepper. |
|
|
The title of the step within the stepper. |
|
Words within the component that can be replaced to translate the component into a different language |
|
The status of the step. Use this prop to display a status message on the step if it is required or optional. |
|
Additional information about the step. Use this prop to override the default step status messaging displayed when selecting a step type or step status. |
|
The state of the step within the stepper. |
Slots
A slot allows for any type of element or markup to be passed into and rendered within a web component. This creates more flexibility than using a prop which must take a specific type of data.
Content can be slotted into a component by adding it as a top-level child of the component.
Slots can have a name to identify them. These specify which slot the content will be inserted into, and therefore where it will be rendered and how it will be used within the component. The name of the slot to be used can be specified by passing it via a
slot
attribute on the slotted content.
|
|
|
|---|---|
|
|
|
|
|
Stepper details
Props
All components also accept native properties supported by the DOM, such asclassName
and
style
.
|
|
|
|
|---|---|---|
|
|
The alignment of the default stepper within its container. |
|
|
|
The length of the connector between each step in pixels. Minimum length is 100px. |
|
|
|
If |
|
|
|
Provide alternative values for text in all child steps. For the purpose of translating the application into other languages. |
|
|
|
Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. |
|
|
|
The variant of the stepper. |
|
|
The alignment of the default stepper within its container. |
|
The length of the connector between each step in pixels. Minimum length is 100px. |
|
If |
|
Provide alternative values for text in all child steps. For the purpose of translating the application into other languages. |
|
Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. |
|
The variant of the stepper. |
Variants
Compact stepper
Interactive example
<ic-steppervariant="compact"><ic-stepheading="Order coffee"type="completed"></ic-step><ic-stepheading="Pay for order"type="current"></ic-step><ic-stepheading="Collect"type="disabled"></ic-step></ic-stepper>
Left-aligned
Interactive example
<ic-stepperaligned="left"><ic-stepheading="Order coffee"type="completed"></ic-step><ic-stepheading="Pay for order"type="current"></ic-step><ic-stepheading="Collect"type="disabled"></ic-step></ic-stepper>
With hidden step information
Interactive example
<ic-stepperhide-step-info="true"><ic-stepheading="Order coffee"type="completed"></ic-step><ic-stepheading="Pay for order"type="current"></ic-step><ic-stepheading="Collect"type="disabled"></ic-step></ic-stepper>
With subtitles
Interactive example
<ic-stepper><ic-stepheading="Order coffee"type="completed"></ic-step><ic-stepheading="Customise your order"subheading="Optional"type="completed"></ic-step><ic-stepheading="Pay for order"subheading="We accept all major debit/credit cards"type="current"></ic-step><ic-stepheading="Collect"type="disabled"></ic-step></ic-stepper>
Custom connector width
Interactive example
<ic-stepperconnector-width="150"><ic-stepheading="Order coffee"type="completed"></ic-step><ic-stepheading="Pay for order"type="current"></ic-step><ic-stepheading="Collect"type="disabled"></ic-step></ic-stepper>
Theme
Interactive example
<ic-steppertheme="dark"><ic-stepheading="Order coffee"type="completed"></ic-step><ic-stepheading="Pay for order"type="current"></ic-step><ic-stepheading="Collect"type="disabled"></ic-step></ic-stepper>