npx shadcn add https://hq-ui.vercel.app/r/alert-dialog
A basic alert dialog with a title, description, and cancel and continue buttons.
Use the size="sm" prop to make the alert dialog smaller.
Use the AlertDialogMedia component to add a media element such as an icon or image to the alert dialog.
Use the size="sm" prop to make the alert dialog smaller and the AlertDialogMedia component to add a media element such as an icon or image to the alert dialog.
Use the AlertDialogAction component to add a destructive action button to the alert dialog.
Use the size prop on the AlertDialogContent component to control the size of the alert dialog. It accepts the following values:
| Prop | Type | Default |
|---|---|---|
size | "default" | "sm" | "default" |