Alert Dialog

A dialog that requires user response to proceed.

Usage

API Reference

AlertDialog

Root component.

AlertDialogTrigger

Trigger button that opens the alert dialog.

AlertDialogPopup

Popup container that displays the alert dialog content. Also exported as AlertDialogContent.

AlertDialogHeader

Container for the alert dialog title and description.

AlertDialogFooter

Footer section for action buttons.

Unlike Dialog, alert dialog has no AlertDialogPanel. Put title and description in AlertDialogHeader, actions in AlertDialogFooter, and use a plain element with className if you need extra body content between them.

Example:

AlertDialogTitle

Title component.

AlertDialogDescription

Description component.

AlertDialogClose

Close button component.

AlertDialogPortal

Portal component for rendering outside the DOM hierarchy.

AlertDialogBackdrop

Backdrop/overlay component. Also exported as AlertDialogOverlay.

AlertDialogViewport

Viewport component for positioning.

Examples

Close Confirmation