Skip to content

Modals

Modals are flexible dialog prompts which offer minimal required functionality and smart defaults. They block the parent window and force users to interact with the modal itself before allowing to continue the workflow.

Usage

Modal

When to use

  • Use modals for guided interactions or showing additional details.
  • Use it to interrupt a flow and to catch the user’s full attention.
  • Use it to prompt a user to enter information crucial to continuing a process.

Best Practices

  • Use button texts which represent their intended action (e.g. use Delete instead of Yes on a delete confirmation dialog).
  • Be mindful when to show the modal to avoid interrupting the user flow.
  • Modals must always be used in combination with Backdrop to provide visual focus on the active modal content.
  • Don't use it for complex decision making that requires additional sources of information unavailable in the current context.
  • Don't use it for nonessential information that is unrelated to the current user flow.

Except where otherwise noted, content on this site is licensed under MIT License.