Component packs › Threshold › Stacked Dialogs
Each nested dialog grows out of its button while the ones behind step back, shrink and dim like a stack of cards.
Stacked Dialogs is a dialog from Threshold, a component pack with 6 overlays: Dialogs, drawers and sheets that come out of where you tapped and go back into it. Price: $2 for the whole pack.
Built with: dialogs stack like cards, each from its own trigger, Escape closes the top.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
onDone | (email: string) => void | Called when the code is verified at the end of the flow. | |
fixed | boolean | ||
theme | "light" | "dark" | ||
autoplay | number | false | Showcase mode: walks the whole flow every N ms while visible. |
readonly depth: numberstart(): void: Opens the first dialog.closeAll(): void: Closes everything.destroy(): voidimport StackedDialogs from './StackedDialogs';
<StackedDialogs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Dialogs and drawers.