A stepper component that provides a wizard-like workflow by dividing content into logical steps.
- Element
-
igc-stepper
- Slots
-
default— Renders the steps of the stepper inside the default slot.
Remarks
The stepper component allows the user to navigate between multiple step children. It supports horizontal and vertical orientation, linear and non-linear navigation, keyboard navigation, and provides API methods to control the active step.
In linear mode, the user can open a step only when all steps before it are valid or optional.
Example
<igc-stepper>
<igc-step>
<span slot="title">Step 1</span>
<p>Step 1 content</p>
</igc-step>
<igc-step>
<span slot="title">Step 2</span>
<p>Step 2 content</p>
</igc-step>
</igc-stepper> Properties
Section titled "Properties"animationDuration
Section titled "animationDuration"The animation duration in either vertical or horizontal mode in milliseconds.
animationDuration: number = 320 Defined in src/components/stepper/stepper.ts:194
contentTop
Section titled "contentTop"Whether the content is displayed above the steps. Applies only to the horizontal orientation.
contentTop: boolean = false Defined in src/components/stepper/stepper.ts:167
horizontalAnimation
Section titled "horizontalAnimation"The animation type when in horizontal mode.
horizontalAnimation: HorizontalTransitionAnimation = 'slide' Defined in src/components/stepper/stepper.ts:185
linear
Section titled "linear"Whether the stepper is linear.
linear: boolean = false Defined in src/components/stepper/stepper.ts:157
Remarks
In linear mode, the user can open a step only when all steps before it are valid or optional.
orientation
Section titled "orientation"The orientation of the stepper.
orientation: StepperOrientation = 'horizontal' Defined in src/components/stepper/stepper.ts:136
stepType
Section titled "stepType"The visual type of the steps.
stepType: StepperStepType = 'full' Defined in src/components/stepper/stepper.ts:145
titlePosition
Section titled "titlePosition"The position of the steps title.
titlePosition: StepperTitlePosition = 'auto' Defined in src/components/stepper/stepper.ts:207
Remarks
With auto, the title is below the indicator in the horizontal orientation,
and after the indicator in the vertical orientation.
verticalAnimation
Section titled "verticalAnimation"The animation type when in vertical mode.
verticalAnimation: StepperVerticalAnimation = 'grow' Defined in src/components/stepper/stepper.ts:176
tagName
Section titled "tagName"The tagName read-only property of the Element interface returns the tag name of the element on which it's called.
tagName: "igc-stepper" = 'igc-stepper' Defined in src/components/stepper/stepper.ts:99
Accessors
Section titled "Accessors"steps
Section titled "steps"The steps of the stepper.
get steps(): readonly IgcStepComponent[] Defined in src/components/stepper/stepper.ts:125
Returns readonly IgcStepComponent[]
Methods
Section titled "Methods"navigateTo
Section titled "navigateTo"Activates the step at a given index. Does nothing for a disabled step.
navigateTo(index: number): void Defined in src/components/stepper/stepper.ts:366
Parameters
- index:
number
Returns void
Activates the next enabled step.
next(): void Defined in src/components/stepper/stepper.ts:375
Returns void
Activates the previous enabled step.
prev(): void Defined in src/components/stepper/stepper.ts:380
Returns void
reset
Section titled "reset"Resets the stepper to its initial state and activates the first enabled step.
reset(): void Defined in src/components/stepper/stepper.ts:390