The Backdrop component in React is used to overlay a dimmed background across the entire screen, guiding the user's focus to a specific element or content in the foreground. This component is often utilized for scenarios that require a change in the application’s state, such as showing loading indicators, modals, dialogs, or other focused content.

In its simplest use, a Backdrop dims the background, enhancing the visibility of what’s in the foreground while signaling that the underlying content is temporarily inaccessible. When Backdrop is open, users can click on it to close it, depending on how the close action is handled in the component’s props.

How to use

The demo below shows a basic Backdrop with a Circular Progress component in the foreground to indicate a loading state. After clicking Show Backdrop, you can click anywhere on the page to close it.