Join our Discord Community
Layout

Dialog Stack

Composable stacked dialog component for React and Next.js applications. Built with TypeScript support, Tailwind CSS styling, and shadcn/ui design featuring multi-step wizards, navigation controls, and Radix UI portal integration.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/dialog-stack.json
npx shadcn@latest add https://www.shadcn.io/registry/dialog-stack.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/dialog-stack.json
bunx shadcn@latest add https://www.shadcn.io/registry/dialog-stack.json

Features

  • Stacked dialogs - Multiple dialog layers with proper z-index management using Radix UI Portal
  • Wizard navigation - Step-by-step flow controls with next/previous functionality using React state
  • Consistent styling - Uniform layout and appearance across all dialog instances using Tailwind CSS
  • Navigation components - Built-in controls for moving between dialog steps using TypeScript handlers
  • Controlled mode - External state management with programmatic navigation for Next.js applications
  • Portal rendering - Proper modal stacking with escape key and overlay handling using shadcn/ui patterns
  • Open source - Free dialog stack component with customizable appearance and behavior

Examples

With six dialogs

Loading component...

With clickable navigation

Loading component...

Controlled

Loading component...

Use Cases

  • Multi-step forms - User registration and onboarding wizard interfaces
  • Checkout processes - E-commerce payment and shipping information collection
  • Settings panels - Nested configuration dialogs with category navigation
  • Data entry workflows - Complex form splitting across multiple dialog steps

Implementation

Built with Radix UI Portal for proper stacking. Uses controlled state for navigation. Supports both linear and non-linear wizard flows. Includes escape key handling and overlay management.