Component packs › Threshold › Stacked Dialogs

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.

Stacked Dialogs props

PropTypeDefaultDescription
onDone(email: string) => voidCalled when the code is verified at the end of the flow.
fixedboolean
theme"light" | "dark"
autoplaynumber | falseShowcase mode: walks the whole flow every N ms while visible.

Methods on the ref

Use it in React

import StackedDialogs from './StackedDialogs';

<StackedDialogs />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Threshold

Good for: Dialogs and drawers.