Stepper

The Stepper component displays a wizard-like workflow by guiding users through the multi-step progression.

Content I
PREVIEW

Stepper consists of a combination of StepList, Step, StepPanels and StepPanel components. The value property is essential for associating Step and StepPanel with each other.

Content I
horizontal-demo

Vertical layout requires StepItem as a wrapper of Step and StepPanel components.

Content I
vertical-demo

When linear property is present, current step must be completed in order to move to the next step.

Content I
linear-demo

Use Stepper with a StepList only for custom requirements where a progress indicator is needed.

steps-only-demo

Custom content for a step is defined with the default slot. The optional as property controls the default container element of a step, for example setting it to a button renders a button for the header instead of a div. The asChild option enables the headless mode for further customization by passing callbacks and properties to implement your own step.

Create your account
template-demo

Screen Reader

Stepper container is defined with the tablist role, as any attribute is passed to the container element aria-labelledby can be optionally used to specify an element to describe the Stepper. Each stepper header has a tab role and aria-controls to refer to the corresponding stepper content element. The content element of each stepper has tabpanel role, an id to match the aria-controls of the header and aria-labelledby reference to the header as the accessible name.

Tab Header Keyboard Support

KeyFunction
tabMoves focus through the header.
enterActivates the focused stepper header.
spaceActivates the focused stepper header.
Theme Designer