Back to skills
SKILL.md
Backdrop
ASecurityAnimated overlay backdrop for modals, dialogs, and drawers. Fades in/out with Framer Motion. Typically used internally by Dialog and Drawer.
- 4 stars
- 0 votes
- 0 copies
- 1 view
- Added May 27, 2026
Works with
Security analysis
100/100npx -y skills add reaviz/skills --skill backdrop --agent claude-codeAre you the author of Backdrop?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/reaviz-backdrop)# Backdrop
Animated overlay backdrop for modals, dialogs, and drawers. Fades in/out with Framer Motion. Typically used internally by Dialog and Drawer.
## Import
```tsx
import { Backdrop } from 'reablocks';
```
## Backdrop Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `zIndex` | `number` | `998` | CSS z-index |
| `portalIndex` | `number` | `0` | Portal nesting index (reduces opacity for stacked backdrops) |
| `className` | `string` | — | Additional CSS classes |
| `onClick` | `(event: MouseEvent) => void` | — | Click handler (used for close-on-backdrop-click) |
| `theme` | `BackdropTheme` | — | Per-instance theme override |
## BackdropTheme Interface
```typescript
interface BackdropTheme {
base: string; // Fixed full-screen overlay (fixed, top-0, left-0, w-full, h-full, bg-black)
opacity: number; // Target opacity (default: 0.8)
}
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.