Overlays

AlertDialog

Ask for explicit confirmation before a critical or irreversible action.

Basic usage

Explain the consequence in Description and place exactly one CancelTrigger before ActionTrigger. Initial focus lands on Cancel, and clicking outside keeps the dialog open.

API

Key props and defaults.

PropValues and behaviorDefault
Root.open / onOpenChangeboolean / ({ open }) => void—
Root.closeOnEscapebooleantrue
Content.sizesm | md | lgsm
CancelTrigger.childrenJSX.ElementCancel
ActionTrigger.onClick(event) => void—