Skip to content

MobileStepper API

The API documentation of the MobileStepper React component. Learn more about the properties and the CSS customization points.

import MobileStepper from '@material-ui/core/MobileStepper';

Props

Name Type Default Description
activeStep number 0 Set the active step (zero based index). Defines which dot is highlighted when the variant is 'dots'.
backButton node A back button element. For instance, it can be a Button or an IconButton.
classes object Override or extend the styles applied to the component. See CSS API below for more details.
LinearProgressProps object Properties applied to the LinearProgress element.
nextButton node A next button element. For instance, it can be a Button or an IconButton.
position enum: 'bottom' |
 'top' |
 'static'
'bottom' Set the positioning type.
steps * number The total steps.
variant enum: 'text' |
 'dots' |
 'progress'
'dots' The variant to use.

The ref is forwarded to the root element.

Any other properties supplied will be provided to the root element (Paper).

CSS

You can override all the class names injected by Material-UI thanks to the classes prop. This prop accepts the following keys:

Name Description
root Styles applied to the root element.
positionBottom Styles applied to the root element if position="bottom".
positionTop Styles applied to the root element if position="top".
positionStatic Styles applied to the root element if position="static".
dots Styles applied to the dots container if variant="dots".
dot Styles applied to each dot if variant="dots".
dotActive Styles applied to a dot if variant="dots" and this is the active step.
progress Styles applied to the Linear Progress component if variant="progress".

Have a look at the overriding styles with classes section and the implementation of the component for more detail.

If using the overrides key of the theme, you need to use the following style sheet name: MuiMobileStepper.

Inheritance

The properties of the Paper component are also available. You can take advantage of this behavior to target nested components.

Notes

The component is fully StrictMode compatible.

Demos