Skip to content

Alert Dialog

Dialog for displaying important content.

Alert Dialog is built on top of the Dialog component. Check it out for more examples.

Installation

Anatomy

Usage

Title & Description

AlertDialogHeader supports two usage patterns:

Using props

Pass title and description props directly to AlertDialogHeader.

This approach does not require AlertDialogTitle or AlertDialogDescription components.

Using components

Use AlertDialogTitle and AlertDialogDescription as children for more control.

Examples

Destructive

API Reference

AlertDialogAction

Primary action.

AlertDialogCancel

Cancel action.


For a complete list of props, see the Dialog API Reference.