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>
<IcStepper><IcStepheading="Order coffee"type="completed"/><IcStepheading="Pay for order"type="current"/><IcStepheading="Collect"type="disabled"/></IcStepper>
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>
<IcSteppervariant="compact"><IcStepheading="Order coffee"type="completed"/><IcStepheading="Pay for order"type="current"/><IcStepheading="Collect"type="disabled"/></IcStepper>
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>
<IcStepperaligned="left"><IcStepheading="Order coffee"type="completed"/><IcStepheading="Pay for order"type="current"/><IcStepheading="Collect"type="disabled"/></IcStepper>
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>
<IcStepperhideStepInfo><IcStepheading="Order coffee"type="completed"/><IcStepheading="Pay for order"type="current"/><IcStepheading="Collect"type="disabled"/></IcStepper>
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>
<IcStepper><IcStepheading="Order coffee"type="completed"/><IcStepheading="Customise your order"subheading="Optional"type="completed"/><IcStepheading="Pay for order"subheading="We accept all major debit/credit cards"type="current"/><IcStepheading="Collect"type="disabled"/></IcStepper>
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>
<IcStepperaligned="left"connectorWidth={150}><IcStepheading="Order coffee"type="completed"/><IcStepheading="Pay for order"type="current"/><IcStepheading="Collect"type="disabled"/></IcStepper>
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>
<IcSteppertheme="dark"><IcStepheading="Order coffee"type="completed"/><IcStepheading="Pay for order"type="current"/><IcStepheading="Collect"type="disabled"/></IcStepper>