Join our Discord Community
Alert Dialog/Confirmation

React Alert Dialog - Confirmation with Icon

A confirmation dialog with an alert icon next to the title, adding visual emphasis to important user decisions

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Icons aren't just decoration—they're instant visual signals. This React alert dialog pairs an amber AlertCircle icon from Lucide React with the title to immediately communicate caution. Built with shadcn/ui and Radix UI, the icon draws attention and reinforces the message's importance before users even read the text. Perfect for unsaved changes warnings, navigation confirmations, or any decision that needs extra visual weight.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have