UI Components
AlertDialog
Modal dialog for confirmations and destructive actions, built on Radix UI AlertDialog.
Quick Preview
Installation
npm install @radix-ui/react-alert-dialog
// Copy fromsrc/components/ui/AlertDialog.tsx
Examples
Destructive confirmation
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
AlertDialog | Root | - | Root component |
AlertDialogTrigger | Trigger | - | Element that opens the dialog |
AlertDialogContent | Content | - | Dialog overlay and panel |
AlertDialogTitle | Title | - | Dialog heading (required) |
AlertDialogDescription | Description | - | Supporting description text |
AlertDialogAction | Action | - | Confirm action button |
AlertDialogCancel | Cancel | - | Cancel action button |