1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
---
id: Backdrop
section: components
cssPrefix: pf-v6-c-backdrop
---## Examples
### Basic
```html isFullscreen
<div class="pf-v6-c-backdrop"></div>
```
## Documentation
### Overview
This component puts a backdrop over the entire viewport.
### Usage
| Class | Applied to | Outcome |
| -- | -- | -- |
| `.pf-v6-c-backdrop` | `<div>` | Initiates backdrop. **Required** |
| `.pf-v6-c-backdrop__open` | `<body>` | Lock scrolling when backdrop is active. This class should be set on `<body>` while backdrop is active and removed while backdrop is inactive. **Required** |
|