Backdrop
stableA full-screen scrim for modal states.
Basic usage
Examples
Inline demonstration
Force mount the backdrop and override positioning when documenting or testing it inline.
Modal loading state
Use Backdrop behind blocking async work or low-level modal surfaces.
Loading
Invisible mode
Invisible backdrops keep blocking behavior while removing the scrim color.
Features
- Open/closed mounting.
- Theme-aware overlay.
Installation
bash
pnpm dlx structyl add backdropAPI Reference
Backdrop
Blocking scrim.
| Prop | Type | Default |
|---|---|---|
| open | booleanOpen state. | false |
| forceMount | booleanKeep mounted when closed. | false |
| invisible | booleanRemove visible scrim color. | false |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |