Back to components
Overlay

Confirm Dialog

A destructive-action confirmation dialog composed from Dialog, Button, and Badge.

Preview
This is the same source that shadcn installs from the generated JSON.
Install
After building the registry and starting the dev server, run this command in a consuming project.
installpnpm dlx shadcn@latest add http://localhost:3000/r/confirm-dialog.json
Source and dependencies
Confirm the source path, registry dependencies, and npm dependencies before installing.
Source pathregistry/default/confirm-dialog/confirm-dialog.tsx
Registry dependencies
badgebuttondialog
NPM dependencies
lucide-react