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. |
|
|
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. |
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. |
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 |
|
|
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 |
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>