Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Alert Dialog

Interrupts for a decision that cannot be undone. No dismiss on outside click.

OverlaysRadix Alert DialogDumb extras
$ pnpm dlx shadcn@latest add @dumb/alert-dialog

Needs the @dumb registry in components.json and the style tokens. See Installation.

import {
  AlertDialog,
  AlertDialogAction,
  AlertDialogCancel,
  AlertDialogContent,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogHeader,
  AlertDialogTitle,
  AlertDialogTrigger,
} from "@/components/ui/alert-dialog"
<AlertDialog>
  <AlertDialogTrigger asChild>
    <Button variant="destructive">Delete</Button>
  </AlertDialogTrigger>
  <AlertDialogContent>
    ...
  </AlertDialogContent>
</AlertDialog>

API reference

Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.

AlertDialogAction

PropTypeDefault
variantextra"default" | "destructive"

Use destructive for irreversible actions.

"default"
Esc
Cancels.
Tab
Moves between Cancel and Action.