A modal dialog that interrupts to confirm an action. Use it for destructive or irreversible choices.
Copy the command below and run it in your terminal.
Import the AlertDialog components and use them:
Common patterns for destructive actions and sign-out flows.
AlertDialog.Root - Controls alert dialog state.
AlertDialog.Trigger - Opens the alert dialog.
AlertDialog.Content - Renders the dialog surface.
AlertDialog.Header - Groups dialog heading content.
AlertDialog.Title - Renders the dialog title.
AlertDialog.Description - Renders the dialog description.
AlertDialog.Exit - Closes the dialog without confirming.
AlertDialog.Footer - Groups dialog actions.
AlertDialog.Confirm - Confirms and closes the dialog.