--- category: overlays --- # AlertDialog Source: `components/ui/alert-dialog.tsx`. `AlertDialog` is a compound component. Its parts are exported **flat** (`AlertDialogPortal`, not `AlertDialog.Portal`) and each is a separate top-level export of the bundle: | Part | Props | | --- | --- | | `AlertDialogPortal` | `React.ComponentProps` | | `AlertDialogOverlay` | `React.ComponentProps` | | `AlertDialogTrigger` | `React.ComponentProps` | | `AlertDialogContent` | `React.ComponentProps` | | `AlertDialogHeader` | `React.ComponentProps<'div'>` | | `AlertDialogFooter` | `React.ComponentProps<'div'>` | | `AlertDialogTitle` | `React.ComponentProps` | | `AlertDialogDescription` | `React.ComponentProps` | | `AlertDialogAction` | `React.ComponentProps` | | `AlertDialogCancel` | `React.ComponentProps` | All parts accept `className` and are composed as children of `AlertDialog`.