Skip to components
DEVELOPER REFERENCE

Stepper API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

Stepper21 props4 callbacks0 methods

Preset and CSS

Set preset.className to attach your CSS class to the component's rendered surface. Explicit component props take precedence over preset options.

CSS parts in the example [data-part="root"] [data-part="step"]

Use styles.root and styles.parts in a theme and generate a CSS file with themeToCss. For other JSON-friendly component props, spread presetProps(preset) before explicit props. Parts and states depend on configuration; the gallery shows those visible in the current preview.

Props21

Stepper props
NameTypeDescription
labelRequiredstringAccessible label for the workflow.
stepsRequired
readonly WorkflowStep[]Inspect type
Steps in display order. The list determines the step count.
valueOptionalstring | undefinedControlled ID of the active step. Without a callback, renders read-only indicators.
stepOptionalnumber | undefinedControlled zero-based index. Use the step count to indicate completion.
defaultStepOptionalnumber | undefinedInitial zero-based index for uncontrolled use.
orientationOptional"auto" | "horizontal" | "vertical" | undefinedExplicit horizontal or vertical layout. Auto stacks at narrow widths.
layoutOptional"standard" | "accordion" | undefinedShow one inline disclosure panel at a time in a vertical list.
dirOptional"ltr" | "rtl" | undefinedOverride the inherited text direction.
idOptionalstring | undefinedOptional DOM identifier for the stepper.
idsOptional
{ root?: string; list?: string; triggerId?: (index: number) => string; contentId?: (index: number) => string; } | undefinedInspect type
Override root, list, trigger or panel DOM IDs.
linearOptionalboolean | undefinedRequire Back and Next navigation instead of direct step activation.
busyOptionalboolean | undefinedPrevent navigation while work is in progress.
busyLabelOptionalstring | undefinedLocalized accessible busy text for the current step.
isStepSkippableOptional
((index: number) => boolean) | undefinedInspect type
Optional steps may be bypassed when navigating with Back and Next.
isStepValidOptional
((index: number) => boolean) | undefinedInspect type
Check the active step before moving forward.
completedContentOptional
ComponentChildrenInspect type
Completion panel displayed after the final step.
completedLabelOptionalstring | undefinedLocalized status announced for completed steps.
previousLabelOptionalstring | undefinedLocalized label for the optional Back button.
nextLabelOptionalstring | undefinedLocalized label for the optional Next button.
presetOptional
ClassPreset | undefinedInspect type
Optional presentation preset.
classNameOptionalstring | undefinedAdditional root class names.

Events and callbacks4

Stepper events and callbacks
NameTypeDescription
onValueChangeOptional
((id: string) => void) | undefinedInspect type
Called when an enabled step is selected by ID.
onStepChangeOptional
((details: StepperChangeDetails) => void) | undefinedInspect type
Called with the new zero-based index, including completion.
onStepInvalidOptional
((details: StepperInvalidDetails) => void) | undefinedInspect type
Called when validation blocks a forward action.
onStepCompleteOptional
(() => void) | undefinedInspect type
Called when the workflow reaches the completion state.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.