| 1 |
--- |
| 2 |
id: Backdrop |
| 3 |
section: components |
| 4 |
cssPrefix: pf-v6-c-backdrop |
| 5 |
---## Examples |
| 6 |
|
| 7 |
### Basic |
| 8 |
|
| 9 |
```html isFullscreen |
| 10 |
<div class="pf-v6-c-backdrop"></div> |
| 11 |
|
| 12 |
``` |
| 13 |
|
| 14 |
## Documentation |
| 15 |
|
| 16 |
### Overview |
| 17 |
|
| 18 |
This component puts a backdrop over the entire viewport. |
| 19 |
|
| 20 |
### Usage |
| 21 |
|
| 22 |
| Class | Applied to | Outcome | |
| 23 |
| -- | -- | -- | |
| 24 |
| `.pf-v6-c-backdrop` | `<div>` | Initiates backdrop. **Required** | |
| 25 |
| `.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** | |