Skip to content
PatternFly logo

Backdrop

A backdrop is used to screen the main content of a page when a modal overlay is opened. It prevents the user from doing other work on the page until the modal is dismissed.

Examples

Basic

Basic screenshot

With spinner

With spinner screenshot

Props

Backdrop

*required
NameTypeDefaultDescription
childrenReact.ReactNodenullcontent rendered inside the backdrop
classNamestring''additional classes added to the button

CSS variables

.pf-c-backdrop--pf-c-backdrop--Position
fixed
.pf-c-backdrop--pf-c-backdrop--ZIndex
400
.pf-c-backdrop--pf-c-backdrop--BackgroundColor
rgba(#030303, .62)

View source on GitHub