Dialog

An alert dialog displays critical information that requires the user's input or interaction.

dialog/main

Resources

Intro & Anatomy

Dialogs display critical information that requires the user's acknowledgment or interaction before they can continue with their task. Use dialogs for essential actions that need immediate attention, such as confirmations for destructive actions, critical alerts, or mandatory updates that affect the user's current workflow.

Dialogs restrict further interactions by disabling content behind them, ensuring users must address the presented information before proceeding. They inform users of critical information related to their current task, e.g. account deletion confirmations, and require user interaction with provided information, e.g. payment updates.

MDX offers four variants: Error, Warning, Success and Primary Colour

dialog/anatomy

 


 

Options & Styles

Content

Title and description are mandatory to clearly communicate the dialog's purpose and required action.
Actions are mandatory and include single or multiple buttons for user response.
Icon is optional and can provide visual context for the dialog's message type.

dialog/content

Variants

MDX offers dialog variants for different message types:

Neutral for general confirmations and standard interactions
Warning for cautionary actions requiring user attention
Error for critical alerts and destructive action confirmations
Success for positive confirmations and completed actions

dialog/variants

 


 

Best Practice & Usage

Dialogs should be used sparingly for truly critical interactions that require immediate user attention. Use clear, actionable language and provide distinct choices that help users understand consequences.

Ref to 207:4982
Ref to 207:5021
Ref to 207:5015
Ref to 207:5590
Ref to 207:4989
Ref to 209:5117
Ref to 214:5983
Ref to 214:5991
Ref to 207:4925
Ref to 207:5028

 


 

Theming

You can customise colours, border radius and width, font styles, shadows, scrim colour, and spacings to match your design requirements whilst maintaining accessibility and usability standards.

When not using MDX icons, a slot is available to use your own icon library or SVG icons within tooltip content.