Content
Main dialog content container with role='alertdialog'. Automatically prevents outside interaction and auto-focuses cancel button.
| Prop | Type | Default |
|---|---|---|
| asChild# | booleanRender as child element, passing props to first child | — |
| className# | stringCSS class name; defaults include fixed positioning, max-w-lg, rounded-2xl, and animations | — |
| forceMount# | booleanForce mounting even when dialog is closed | — |
| onEscapeKeyDown# | (event: KeyboardEvent) => voidCallback when Escape key pressed inside dialog | — |
| onOpenAutoFocus# | (event: Event) => voidCallback before focus moves to content on open; can preventDefault to skip default focus behavior | — |
| onCloseAutoFocus# | (event: Event) => voidCallback before focus returns on close | — |
| style# | React.CSSPropertiesInline styles | — |