DzinerHub

DzinerHub

Dialog

A modal surface requiring user attention and response.

Dialog

A modal surface requiring user attention and response.

In Feedback

What is a Dialog?

A dialog is a modal surface that appears on top of the main content to capture the user's attention and prompt a response. It is commonly used to convey important information, gather user input, or request confirmation for an action.

When to use Dialog?

Dialogs should be used when immediate user interaction is required, such as confirming a decision, displaying critical alerts, or inputting necessary information. They are effective in scenarios where the user needs to focus on a particular task without distractions from the background content.

When not to use Dialog?

Dialogs should be avoided for non-critical messages or when the information can be conveyed through less intrusive means, such as notifications or tooltips. Additionally, overusing dialogs can lead to a frustrating user experience, as they interrupt the user's workflow.

What is the anatomy of a Dialog?

A dialog typically consists of a title, a message area for content, input fields (if applicable), and action buttons for user responses (e.g., "Confirm," "Cancel"). The design should be clear and concise, ensuring that users understand the purpose and can easily respond to the dialog.