Content
Main dialog container; extends HTML div element; contains title, description, and close button
| Prop | Type | Default |
|---|---|---|
| asChild# | booleanRender as child element instead of div | — |
| forceMount# | booleanForce-mount content to DOM even when dialog is closed | — |
| onEscapeKeyDown# | (event: KeyboardEvent) => voidCallback fired when Escape key pressed; call event.preventDefault() to prevent dismiss | — |
| onPointerDownOutside# | (event: PointerDownOutsideEvent) => voidCallback fired when pointer down event occurs outside content | — |
| onInteractOutside# | (event: PointerDownOutsideEvent | FocusOutsideEvent) => voidCallback fired on any interaction outside content (pointer or focus) | — |
| onOpenAutoFocus# | (event: Event) => voidCallback fired when focus moves into content on open; call event.preventDefault() to prevent | — |
| onCloseAutoFocus# | (event: Event) => voidCallback fired when focus moves back on close; call event.preventDefault() to prevent | — |
| className# | stringCSS class name | — |