A modal dialog with morphing animations, spring physics, and focus management. Built with Motion for smooth layout animations and transitions.
Copy and paste the following code into your project.
This will also install: motion-provider, button
A morphing dialog with smooth layout animations and spring physics.
Use subtitle for additional context.
Example use cases for morphing dialogs.
Provides consistent padding (p-6 sm:p-8), centered layout, and proper spacing. Use as direct child of AlertDialog.Content for beautiful defaults.
Centers title and description with Premium spacing. Pass an icon prop for automatic circular background styling.
Stacks buttons vertically with consistent spacing (Premium). Buttons automatically take full width.
asChild with Button so only the surface morphs and text stays crisp.Alert dialog pattern for critical actions that require confirmation.
• role="alertdialog" with aria-modal
• Title linked via aria-labelledby
• Async states use aria-busy