Join our Discord Community
Alert Dialog/Destructive

React Alert Dialog - Destructive with Checkbox Confirmation

A destructive alert dialog requiring checkbox confirmation to enable the delete action for extra protection

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


A single button click is too easy for life-changing deletions. This React alert dialog adds a checkbox users must check before the Delete Account button becomes active. Built with shadcn/ui and Radix UI with centered AlertTriangle icon, the extra interaction step forces deliberate choice. Perfect for account deletions, data purges, or any catastrophic action where you need users to actively acknowledge consequences, not just muscle-memory click through.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have