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
| Name | Type | Description |
|---|---|---|
labelRequired | string | Accessible label for the workflow. |
stepsRequired |
| Steps in display order. The list determines the step count. |
valueOptional | string | undefined | Controlled ID of the active step. Without a callback, renders read-only indicators. |
stepOptional | number | undefined | Controlled zero-based index. Use the step count to indicate completion. |
defaultStepOptional | number | undefined | Initial zero-based index for uncontrolled use. |
orientationOptional | "auto" | "horizontal" | "vertical" | undefined | Explicit horizontal or vertical layout. Auto stacks at narrow widths. |
layoutOptional | "standard" | "accordion" | undefined | Show one inline disclosure panel at a time in a vertical list. |
dirOptional | "ltr" | "rtl" | undefined | Override the inherited text direction. |
idOptional | string | undefined | Optional DOM identifier for the stepper. |
idsOptional |
| Override root, list, trigger or panel DOM IDs. |
linearOptional | boolean | undefined | Require Back and Next navigation instead of direct step activation. |
busyOptional | boolean | undefined | Prevent navigation while work is in progress. |
busyLabelOptional | string | undefined | Localized accessible busy text for the current step. |
isStepSkippableOptional |
| Optional steps may be bypassed when navigating with Back and Next. |
isStepValidOptional |
| Check the active step before moving forward. |
completedContentOptional |
| Completion panel displayed after the final step. |
completedLabelOptional | string | undefined | Localized status announced for completed steps. |
previousLabelOptional | string | undefined | Localized label for the optional Back button. |
nextLabelOptional | string | undefined | Localized label for the optional Next button. |
presetOptional |
| Optional presentation preset. |
classNameOptional | string | undefined | Additional root class names. |
Events and callbacks4
| Name | Type | Description |
|---|---|---|
onValueChangeOptional |
| Called when an enabled step is selected by ID. |
onStepChangeOptional |
| Called with the new zero-based index, including completion. |
onStepInvalidOptional |
| Called when validation blocks a forward action. |
onStepCompleteOptional |
| Called when the workflow reaches the completion state. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.