Backdrop API
Importação
import Backdrop from '@mui/material/Backdrop';
// ou
import { Backdrop } from '@mui/material';Nome do componente
The nameMuiBackdrop can be used when providing default props or style overrides in the theme.Propriedades
Propriedades do componente Fade também estão disponíveis.
| Nome | Tipo | Padrão | Descrição | 
|---|---|---|---|
| open* | bool | false | Control the popup` open state. | 
| children | node | O conteúdo do componente. | |
| classes | object | Sobrescreve ou extende os estilos aplicados para o componente. Veja a API CSS abaixo para maiores detalhes. | |
| component | elementType | The component used for the root node. Either a string to use a HTML element or a component. | |
| components | { Root?: elementType } | {} | The components used for each slot inside the Backdrop. Either a string to use a HTML element or a component. | 
| componentsProps | { root?: object } | {} | The props used for each slot inside the Backdrop. | 
| invisible | bool | false | If  true, the backdrop is invisible. It can be used when rendering a popover or a custom select component. | 
| slotProps | { root?: object } | {} | |
| slots | { root?: elementType } | {} | |
| 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. | |
| transitionDuration | number | { appear?: number, enter?: number, exit?: number } | The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object. | 
O
ref é encaminhado para o elemento raiz.Herança
While not explicitly documented above, the props of the Fade component are also available on Backdrop. You can take advantage of this to target nested components.CSS
| Nome da regra | Classe global | Descrição | 
|---|---|---|
| root | .MuiBackdrop-root | Estilos aplicados ao elemento raiz. | 
| invisible | .MuiBackdrop-invisible | Estilos aplicados para o elemento raiz se invisible={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.