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>

The animation duration in either vertical or horizontal mode in milliseconds.

animationDuration: number = 320

Defined in src/components/stepper/stepper.ts:194

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

The animation type when in horizontal mode.

horizontalAnimation: HorizontalTransitionAnimation = 'slide'

Defined in src/components/stepper/stepper.ts:185

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.

The orientation of the stepper.

orientation: StepperOrientation = 'horizontal'

Defined in src/components/stepper/stepper.ts:136

The visual type of the steps.

stepType: StepperStepType = 'full'

Defined in src/components/stepper/stepper.ts:145

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.

The animation type when in vertical mode.

verticalAnimation: StepperVerticalAnimation = 'grow'

Defined in src/components/stepper/stepper.ts:176

The tagName read-only property of the Element interface returns the tag name of the element on which it's called.

MDN Reference

tagName: "igc-stepper" = 'igc-stepper'

Defined in src/components/stepper/stepper.ts:99

The steps of the stepper.

get steps(): readonly IgcStepComponent[]

Defined in src/components/stepper/stepper.ts:125

Returns readonly IgcStepComponent[]

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

Resets the stepper to its initial state and activates the first enabled step.

reset(): void

Defined in src/components/stepper/stepper.ts:390

Returns void