Components

Dialog

A modal-type component that pauses the user's flow and forces them to receive important information or complete a specific task.

FigmaReact
Dialog cover image

Alert Dialog

When the user needs immediate confirmation or a warning, use Alert Dialog. Refer to the Dialog vs Alert Dialog section below for the difference between the two components.

Anatomy

Dialog consists of three areas — Header, Content, and Footer — on top of a Backdrop.

  • Header: Provides the Dialog's title and description, and includes a close button if needed.
  • Content: The area where the actual content is placed.
  • Footer: Where the action buttons for completing or cancelling the task are placed.
  • Backdrop: Darkens the main screen behind the Dialog to focus attention.

Anatomy image of Dialog. Consists of Header, Content, and Footer on top of a Backdrop.

Properties

Size

Provides two options based on the desktop environment.

  • Medium (480px): General data entry forms
  • Large (800px): Complex settings, viewing large amounts of data

Dialog Size Property - Medium (480px) and Large (800px)

Height

Dialog's height changes flexibly according to the amount of content, and its maximum height is limited for readability. The Max Height is set to 80% of the screen height, and it is always placed at the exact center of the screen.

Dialog Height - changes flexibly with the amount of content, with a max height of 80% of the screen height

Guidelines

Elevation

Dialog has the highest visual hierarchy in the system and demands the user's immediate attention.

  • Critical Modal: Dialog is positioned above all other UI elements. (Level 3)
  • Layer structure: Operates above Level 2 (Drawer, Bottom Sheet), and pauses all interactions at lower levels when active.

Dialog Elevation - layer hierarchy of Snackbar, Backdrop, and Dialog

Scroll Behavior

  • Scroll Fog: When scrolling occurs, a Scroll Fog is shown at the bottom of the Content area. Bottom margin equal to the Scroll Fog's height is secured so it displays naturally when scrolled all the way down.
  • Fixed Header & Footer: Even if the body content becomes long, the title (Header) and buttons (Footer) always stay fixed in place.
  • Body Scroll: Vertical scrolling is enabled only in the central Body area.
  • Divider Visibility: When the body is scrolled, a divider is shown below the header to clearly distinguish the areas.

Scroll behavior when a Footer is present - Scroll Fog and Divider are shown

Scroll behavior when no Footer is present

Dialog's close behavior

The way a user stops a task and leaves the Dialog must be clear and consistent.

  • Close Button (Header): Used for simple information viewing or stopping the flow. The most intuitive exit for mouse users.
  • Cancel Button (Footer): Used as an explicit refusal corresponding to a primary task such as "Confirm/Save," as in an input form or settings change.
  • Backdrop Click / ESC: The quickest way to exit, used for lightweight notifications or layers.

Avoid providing both the header's "close button" and the footer's "cancel button" at the same time. For a Dialog used for simple guidance or viewing, use the header's close button; for a Dialog used for data entry or editing, using the footer's cancel button is recommended. For a Dialog that includes an input form, avoid using the header's 'X' button in order to focus on the footer action.

Three ways to close a Dialog - clicking the Close Button, clicking the Backdrop, clicking the Cancel Button

Example of not providing both the header close button and the footer cancel button at the same time

Responsive Behavior

Dialog's width automatically adjusts to fit the screen size. On large screens the Width value is used as-is, and on narrow screens the Dialog is shown at 90% of the screen width.

  • md and above (768px+): Shown at the Width value as-is (Medium = 480px, Large = 800px)
  • Below md (~767px): Shown at 90% of the screen width (5% margin secured on each side)
  • Scroll Behavior: The Body scroll method is applied the same way in all environments.
  • Header/Footer Safe Area: Applies Safe Area Inset in mobile landscape mode to avoid the notch/home indicator.

Dialog with width adjusting based on screen size - Width value as-is at md and above, 90% of screen width below md

Responsive Dialog

When using Dialog on desktop, Responsive Dialog is used by default. At md and above it appears as a Dialog, and below md it automatically switches to a Bottom Sheet, providing appropriate usability for each environment.

  • md and above (768px+): Shown as Dialog
  • Below md (~767px): Shown as Bottom Sheet
  • Common constraint: The Header/Body/Footer structure remains the same across both components.

Responsive Dialog switching between Dialog at md and above and Bottom Sheet below md

Dialog vs Alert Dialog

Dialog and Alert Dialog are visually similar, but differ clearly in purpose and behavior. Choose based on the nature of the content and the response required from the user.

Use Dialog when the user actively interacts with content, such as performing a task, viewing information, or entering a form. The user can close the Dialog and return to their original task, and the system does not force an immediate response.

Use Alert Dialog to deliver system messages or when the user's confirmation/warning is required. It requires the user's immediate attention and response, and has the nature of interrupting the task.

CategoryDialogAlert Dialog
PurposePerforming a task, viewing information, form inputDelivering a system message, user confirmation/warning
User responseOptional (can close and return to the original task)Required (immediate response required)
Close ButtonProvided in the HeaderNot provided
SizeMedium, LargeSingle size

Table of contents