Core Elements
Alert Dialog
A dialog for confirmations and destructive actions: a click outside does not close it, only a button or Escape does.
Usage
Installation
npm install @wunderui/reactThen import what you need:
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogOverlay,
AlertDialogPortal,
AlertDialogTitle,
AlertDialogTrigger,
} from "@wunderui/react"Examples
Default
Asks before leaving with unsaved changes — click it to open the real dialog.
Destructive
The red action and icon for something that cannot be undone — click to open.
In context
How the component is used inside real screens — the same compositions as the Usage section of the Figma page.
Remove team member
Removing someone from a team asks for confirmation first, and only the two buttons or Escape close the dialog.