OverlaysLiquid Glass
Alert Dialog
Confirmation modal for destructive and irreversible actions. Preview live, copy the source, or install with the CLI into your Next.js project.
Install
npx @intellihelper/cli@latest add alert-dialogDestructive confirm
About this component
Alert Dialog is part of Overlays. Confirmation modal for destructive and irreversible actions.
Install with npx @intellihelper/cli@latest add alert-dialog. Files land in your project so you can customize styles, variants, and behavior without a locked package.
Prefer AI-assisted install? Use the agent plugin or the MCP server.
When to use Alert Dialog
Use when
- Use Alert Dialog when confirmation modal for destructive and irreversible actions.
- Temporary focus tasks: dialogs, sheets, popovers, tooltips, hover cards.
- Confirmations and dense secondary UI that should not navigate away.
Avoid when
- Primary page content — overlays hide context and hurt deep linking.
- Critical legal copy that must remain permanently visible.
Accessibility notes
- Focus moves into the overlay on open and returns on close.
- Escape dismisses where appropriate; dialogs should label the title.
- Tooltips must not be the only way to access essential information.
Interactive primitives build on accessible patterns (including Radix where applicable). Always verify focus order and contrast on your mesh or product background.
Composition tips
- Prefer sheet for mobile-heavy flows; dialog for focused confirmations.
- Keep overlay body short; link out to full pages for long content.