Stepper API
Importação
import Stepper from '@mui/material/Stepper';
// ou
import { Stepper } from '@mui/material';Nome do componente
The nameMuiStepper can be used when providing default props or style overrides in the theme.Propriedades
Propriedades do componente nativo também estão disponíveis.
| Nome | Tipo | Padrão | Descrição | 
|---|---|---|---|
| activeStep | integer | 0 | Set the active step (zero based index). Set to -1 to disable all the steps. | 
| alternativeLabel | bool | false | If set to 'true' and orientation is horizontal, then the step label will be positioned under the icon. | 
| children | node | Two or more  <Step />components. | |
| classes | object | Sobrescreve ou extende os estilos aplicados para o componente. Veja a API CSS abaixo para maiores detalhes. | |
| component | elementType | ||
| connector | element | <StepConnector /> | An element to be placed between each step. | 
| nonLinear | bool | false | If set the  Stepperwill not assist in controlling steps for linear flow. | 
| orientation | 'horizontal' | 'vertical' | 'horizontal' | The group orientation (layout flow direction). | 
| sx | Array<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. | 
O
ref é encaminhado para o elemento raiz.CSS
| Nome da regra | Classe global | Descrição | 
|---|---|---|
| root | .MuiStepper-root | Estilos aplicados ao elemento raiz. | 
| horizontal | .MuiStepper-horizontal | Estilos aplicados para o elemento raiz se orientation="horizontal". | 
| vertical | .MuiStepper-vertical | Estilos aplicados para o elemento raiz se orientation="vertical". | 
| alternativeLabel | .MuiStepper-alternativeLabel | Estilos aplicados para o elemento raiz se alternativeLabel={true}. | 
Você pode sobrescrever o estilo do componente usando uma dessas opções de customização:
- With a global class name.
- With a rule name as part of the component's styleOverridesproperty in a custom theme.