Перейти к контенту

🎉 Material UI v5 is out now! Check out the announcement blog post

StepContent API

The API documentation of the StepContent React component. Learn more about the props and the CSS customization points.

Import

import StepContent from '@material-ui/core/StepContent';
// or
import { StepContent } from '@material-ui/core';

You can learn more about the difference by reading this guide.

Component name

The MuiStepContent name can be used for providing default props or style overrides at the theme level.

Props

Name Type Default Description
children node Step content.
classes object Override or extend the styles applied to the component. See CSS API below for more details.
TransitionComponent elementType Collapse The component used for the transition. Follow this guide to learn more about the requirements for this component.
transitionDuration 'auto'
| number
| { appear?: number, enter?: number, exit?: number }
'auto' Adjust the duration of the content expand transition. Passed as a prop to the transition component.
Set to 'auto' to automatically calculate transition time based on height.
TransitionProps object Props applied to the Transition element.

The ref is forwarded to the root element.

Any other props supplied will be provided to the root element (native element).

CSS

Rule name Global class Description
root .MuiStepContent-root Styles applied to the root element.
last .MuiStepContent-last Styles applied to the root element if last={true} (controlled by Step).
transition .MuiStepContent-transition Styles applied to the Transition component.

You can override the style of the component thanks to one of these customization points:

If that's not sufficient, you can check the implementation of the component for more detail.

Demos