Backdrop
The Backdrop component narrows the user’s focus to a particular element on the screen, typically used with modals and loading states.Overview
Backdrop is a simple full-screen overlay that can contain loading indicators or be used to block user interaction during asynchronous operations. It uses the Fade transition by default.Basic Usage
Invisible Backdrop
The backdrop can be made invisible while still blocking user interaction:Props
Main Props
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | required | If true, the component is shown. |
invisible | boolean | false | If true, the backdrop is invisible. Can be used when rendering a popover or custom select. |
transitionDuration | number | { enter?: number, exit?: number } | - | The duration for the transition, in milliseconds. |
slots.transition | ElementType | Fade | The component used for the transition. |
sx | SxProps<Theme> | - | System prop for defining CSS overrides. |
Inherited Props
Backdrop also accepts all props from the Fade component:| Prop | Type | Description |
|---|---|---|
in | boolean | If true, the component is shown (controlled by open prop). |
timeout | number | { enter?: number, exit?: number } | Transition timeout. |
easing | string | { enter?: string, exit?: string } | Transition easing. |
Slot Props
The Backdrop component supports slot-based customization:slots.root- The root div elementslots.transition- The transition component (default: Fade)
slotProps to pass props to each slot:
CSS Classes
The component has the following CSS classes available:.MuiBackdrop-root- Root element.MuiBackdrop-invisible- Applied wheninvisible={true}
Z-Index
Backdrop uses a z-index to position itself above other content. The default z-index can be accessed via:sx prop:
Inheritance
Backdrop inherits from the Fade component.API Reference
For complete API documentation, see:Source Location
~/workspace/source/packages/mui-material/src/Backdrop/Backdrop.d.ts:141