Step API
Documentação da API para o componente React Step . Aprenda sobre as propriedades disponíveis e a API CSS.
Importação
import Step from '@mui/material/Step';
// ou
import { Step } from '@mui/material';Nome do componente
The nameMuiStep 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 |
|---|---|---|---|
| active | bool | false | Sets the step as active. Is passed to child components. |
| children | node | Should be Step sub-components such as StepLabel, StepContent. | |
| classes | object | Sobrescreve ou extende os estilos aplicados para o componente. Veja a API CSS abaixo para maiores detalhes. | |
| completed | bool | false | Mark the step as completed. Is passed to child components. |
| disabled | bool | false | Mark the step as disabled, will also disable the button if StepButton is a child of Step. Is passed to child components. |
| expanded | bool | false | Expand the step. |
| index | integer | The position of the step. The prop defaults to the value inherited from the parent Stepper component. | |
| last | bool | false | If true, the Step is displayed as rendered last. The prop defaults to the value inherited from the parent Stepper component. |
| 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 | .MuiStep-root | Estilos aplicados ao elemento raiz. |
| horizontal | .MuiStep-horizontal | Estilos aplicados para o elemento raiz se orientation="horizontal". |
| vertical | .MuiStep-vertical | Estilos aplicados para o elemento raiz se orientation="vertical". |
| alternativeLabel | .MuiStep-alternativeLabel | Estilos aplicados para o elemento raiz se alternativeLabel={true}. |
| completed | .Mui-completed | Pseudo-class aplicada a o elemento raiz se completed={true}. |
Você pode sobrescrever o estilo do componente usando uma dessas opções de customização:
- Com um nome de classe global.
- Com um nome de regra como parte da propriedade
styleOverridesdo componente em um tema personalizado.