Is a window overlaid on either the primary window or another dialog window. Windows under a modal dialog are inert. That is, users cannot interact with content outside an active dialog window. Inert content outside an active dialog is typically visually obscured or dimmed so it is difficult to discern, and in some implementations, attempts to interact with the inert content cause the dialog to close.
The Dialog is composed of several components that work together through a shared context:
Dialog: The root component that creates the state and provides context to its children.
DialogTrigger: A button that opens the dialog when clicked.
DialogSurface: The `<dialog>` element that hosts the dialog content.
DialogTitle: The heading of the dialog. Renders as an `h3` by default.
DialogContent: The scrollable body of the dialog.
DialogActions: The footer that holds action buttons.