Pular para o conteúdo

StepContent API

Documentação da API para o componente React StepContent . Aprenda sobre as propriedades disponíveis e a API CSS.

Demonstrações

For examples and details on the usage of this React component, visit the component demo pages:

Importação

import StepContent from '@mui/material/StepContent';
// ou
import { StepContent } from '@mui/material';
Você pode aprender sobre a diferença lendo este guia sobre como minimizar o tamanho do pacote.

Nome do componente

The name MuiStepContent can be used when providing default props or style overrides in the theme.

Propriedades

Propriedades do componente nativo também estão disponíveis.

NomeTipoPadrãoDescrição
childrennode
O conteúdo do componente.
classesobject
Sobrescreve ou extende os estilos aplicados para o componente. Veja a API CSS abaixo para maiores detalhes.
sxArray<func
| object
| bool>
| func
| object
The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.
TransitionComponentelementTypeCollapse
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.
TransitionPropsobject
Props applied to the transition element. By default, the element is based on this Transition component.

O ref é encaminhado para o elemento raiz.

CSS

Nome da regraClasse globalDescrição
root.MuiStepContent-rootEstilos aplicados ao elemento raiz.
last.MuiStepContent-lastEstilos aplicados para o elemento raiz se last={true} (controlled by Step).
transition.MuiStepContent-transitionEstilos aplicados a the Transition component.

Você pode sobrescrever o estilo do componente usando uma dessas opções de customização: