Alert Dialog
A modal that interrupts for a decision. Unlike Dialog it cannot be dismissed by clicking outside — the person has to choose Cancel or the action.
tsx
import {
AlertDialog,
AlertDialogTrigger,
AlertDialogContent,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogCancel,
AlertDialogAction,
} from "@pestoui/core"Destructive confirmation
AlertDialogAction and AlertDialogCancel are Buttons, so they take variant and size. Cancel receives focus when the dialog opens.
Compact, with a media tile
size="sm" narrows the panel for a one-line question. AlertDialogMedia puts an icon tile above the title.
Props
Pesto UI · 117 documented components