Skip to main content

Stepper

shadow

The Stepper component displays the progress through numbered steps. It provides a wizard-like workflow. Steppers show progress through a sequence of numbered steps.

Basic use

This example presents the stepper in a standard multi-step flow with the default navigation controls.

Disabled (Deactivated) steps

This example disables selected steps so you can see how the stepper communicates unavailable navigation.

Custom buttons

This example replaces the default controls with custom buttons, which is useful in more specialized wizard flows.

When to use

Use wje-stepper when users need to enter values, choose options, or trigger form-related actions.

When not to use

Do not use it as a decorative element without interaction. Prefer presentational components in that case.

Accessibility

Always provide a label (label/aria-label), keep keyboard support, and surface clear validation feedback.

Best Practices

  • Keep validation rules and error behavior consistent across the entire form.
  • Show loading or disabled states during async operations.
  • Split complex forms into smaller sections with immediate feedback.

Attributes and Properties

active

DescriptionThe active color for the stepper.
Attributeactive
Typestring
Default-

done

DescriptionThe done color for the stepper.
Attributedone
Typestring
Default-

startIndex

DescriptionSets the start index for an operation or a process. This method assigns the provided value to the attribute 'start-index'.
Attributestart-index
Typenumber|string
Default-

Events

No events available for this component.

Methods

DescriptionNavigates to a different step in a multi-step process based on the provided direction.
Signature(direction: number) => void

goToStep

DescriptionNavigates to a specific step in a workflow or process. Executes a set of operations before and after the step transition.
Signature(stepIndex: number) => void

CSS Shadow Parts

NameDescription
nativeThe native part of the stepper.
headerThe header part of the stepper.
contentThe content part of the stepper.

CSS Custom Properties

No CSS custom properties available for this component.

Slots

NameDescription
defaultThe default slot for the stepper.