Components

Alert Dialog

A component used as a strong expression and warning tool when user confirmation is absolutely required.

FigmaReactiOSAndroid
Alert Dialog cover image

Anatomy

Anatomy image of Alert Dialog. Consists of a Backdrop (Overlay) and Dialog Content.

Alert Dialog is provided as a single component combining a Backdrop (Overlay) and Dialog Content.

Properties

Layout Property

Alert Dialog Layout Property

A horizontal arrangement of Action Buttons is provided by default. If the Action Button label is long, a vertical arrangement can be used.

Show Title

Alert Dialog Show Title Property - whether the title is shown

Depending on the situation, the title may not be shown.

Guidelines

Use in situations requiring notification or confirmation

Example of using Alert Dialog in a situation requiring notification or confirmation - Neutral

Example of using Alert Dialog in a situation requiring notification or confirmation - Neutral

Alert Dialog can be used when the user absolutely must know certain information or must select an option. Using Neutral is recommended by default, but Brand can be used when guiding information closely tied to the product's core value.

Use in situations requiring a warning

Example of using Alert Dialog in a situation requiring a warning - Critical

Use Critical in situations where something the user has done could be lost, such as deleting data, content the user wrote being erased, or resetting settings. The button representing the action requiring a warning must be shown as Critical.

Example of using Critical on the 'Cancel' button in Alert Dialog
Don’t
A Critical Action Button must be assigned to the action that requires a warning.

When using a long button Label

Example of Responsive-wrapping when using a long button Label

If a long Action Button label is needed, or unintentionally becomes long after translation, the Action Button layout may overflow.

Because Alert Dialog provides a Responsive-wrapping container, the layout automatically switches according to the configured logic.

Using a Nonpreferred layout (use with caution)

Example of using a None preferred layout - Secondary Ghost Button

This layout option can be used when there is a large difference in importance between the Primary Action Button and the Secondary Action Button.

Importance should be judged based on how much emphasis is needed in the current context. However, because context differs by individual domain, judgment is required on a case-by-case basis. Rather than using it indiscriminately, use it to convey an emphasis weaker than a warning.

Arbitrarily combining various content

Because Alert Dialog is a component shown for the purpose of warning or notification, arbitrarily modifying or transforming it at the point of use is prohibited. The point of use must use the given props as-is when using Alert Dialog.

Incorrect example of arbitrarily customizing Alert Dialog or changing the content alignment
Don’t
Do not arbitrarily customize it or change the content alignment.
Correct example of using Alert Dialog in the form provided
Do
Use it in the form provided as-is, and alignment must always be maintained.

Alert Dialog UX Writing

The proper way to write Alert Dialog guidance copy is explained in a separate Notion document.

Alert Dialog vs. Menu Sheet

Comparing Alert Dialog and Menu Sheet

Comparison of Alert Dialog and Menu Sheet usage examples

Alert Dialog and Menu Sheet are similar UI, but differ in purpose and functionality.

Unlike Alert Dialog, Menu Sheet can be closed by tapping outside of it.

CategoryAlert DialogMenu Sheet
PurposeGuidance for an action that requires a selection and cannot be undoneProvides multiple usable menus and actions
Number of actions provided2 or fewer (including close)2 or more (including close)
Action compositionEither/or (whether to delete / whether to leave, etc.)Composed of multiple options
Whether content is shownExplanation of the action is always requiredExplanation may not be needed
Display positionCenter of the screenBottom of the screen
Close actionCloses only by tapping an explicit close/cancel button, etc.Closes by tapping a close button or the outside area

Specification

base

StateSlotPropertyValue
enabledbackdropcolor
enterDuration
enterTimingFunction
enterOpacity
exitDuration
exitTimingFunction
exitOpacity
contentcolor
cornerRadius
widthFraction
maxHeightFraction
marginX
enterDuration
enterTimingFunction
enterOpacity
enterScale
exitDuration
exitTimingFunction
exitOpacity
headergap
paddingX
paddingTop
paddingBottom
closeButtonGap
bodypaddingX
paddingBottom
strokeDuration
strokeTimingFunction
footerpaddingX
paddingTop
paddingBottom
titlecolor
fontSize
lineHeight
fontWeight
descriptioncolor
fontSize
lineHeight
fontWeight
closeButtonfromTop
fromRight
scrolledbodystrokeColor
strokeWidth

size=medium

StateSlotPropertyValue
enabledcontentmaxWidth

size=large

StateSlotPropertyValue
enabledcontentmaxWidth

Table of contents