Dialogs are overlay windows that focus user attention on important information, collect input, or require decisions. They appear above the main content and block interaction with the rest of the page until dismissed.
A simple dialog with a title, description, and content.
Add a footer section to contain action buttons.
Dialogs can be stacked on top of each other for multi-step interactions. Wrap your app (or the dialog subtree) in DialogProvider so stacked dialogs can coordinate focus and inert behavior on the base dialog.
Dialogs can be customized with Flex props for different visual styles.
Remove the header and use full-bleed media with flush. Use showClose={false} to remove the close button and maxWidth to control the size.
By default, clicking the backdrop closes the dialog. Set closeOnClickaway={false} to require an explicit close action.
The Dialog component follows accessibility best practices:
- Uses role="dialog" and aria-modal="true"
- Traps focus within the dialog when open
- Supports keyboard navigation and Escape key to close
- Provides proper labeling with aria-labelledby
- Makes content outside the dialog inert when dialog is open
Wrap your application (or a subtree) when using stacked dialogs.