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.
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 | number | { enter?: number, exit?: number } | 'auto' |
'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
- Style sheet name:
MuiStepContent
. - Style sheet details:
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:
- With a rule name of the
classes
object prop. - With a global class name.
- With a theme and an
overrides
property.
If that's not sufficient, you can check the implementation of the component for more detail.