Join our Discord Community
Alert Dialog/Custom Actions

React Alert Dialog - Actions with Icons

An alert dialog with icons inside action buttons to provide visual context for each choice

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Button text alone doesn't always convey intent—icons add instant recognition. This React alert dialog adds Lucide React icons directly inside AlertDialogAction buttons to reinforce what happens when clicked. Built with shadcn/ui and Radix UI, icons like ExternalLink make actions clearer without extra words. Perfect for external navigation warnings, file downloads, or any action where an icon communicates purpose faster than text alone.

Loading preview...

Pattern created by @haydenbleasel

Installation

npx shadcn@latest add https://www.shadcn.io/registry/alert-dialog-custom-actions-1.json
npx shadcn@latest add https://www.shadcn.io/registry/alert-dialog-custom-actions-1.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/alert-dialog-custom-actions-1.json
bunx shadcn@latest add https://www.shadcn.io/registry/alert-dialog-custom-actions-1.json

Questions you might have