AlertDialog

Designer doc
An alert dialog is a modal dialog that interrupts the user’s workflow to communicate an important message and acquire a response. Examples include action confirmation prompts and error message confirmations.
This component is built on top of Dialog and its compound components.

Example

View code

References

API

AlertDialog
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
containerHTMLElement
disableFocusLockboolean
disableScrollLockboolean
elevationLevelnumber
immediateboolean
initialIsOpenboolean
isOpenboolean
onClose() => void
onOutsideClickMouseEventHandler<HTMLDivElement>
returnFocusToElement
transitionFromElement
typeDialogTypes
AlertDialogActions
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
AlertDialogBox
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
autoFocusboolean
disableFocusLockboolean
disableScrollLockboolean
typeDialogTypes
AlertDialogClose
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
colorTypeColorTypesneuFore2nd
Set color based on theme. If color is specified, that prop is used instead of this.
disabledboolean
Equivalent to button's disabled property.
keyboardClickKeysstring[]
loadingboolean
onBlurFocusEventHandler<HTMLDivElement>
onClickMouseEventHandler<HTMLDivElement>
onKeyDownKeyboardEventHandler<HTMLDivElement>
onKeyUpKeyboardEventHandler<HTMLDivElement>
onMouseDownMouseEventHandler<HTMLDivElement>
onMouseLeaveMouseEventHandler<HTMLDivElement>
onMouseUpMouseEventHandler<HTMLDivElement>
onReleaseEventHandler<SyntheticEvent<HTMLDivElement, Event>>
Callback that's triggered after click i.e. mouseup and keyup of enter or space.
onTouchEndTouchEventHandler<HTMLDivElement>
onTouchStartTouchEventHandler<HTMLDivElement>
radiusstring
sizeIconButtonSizes
tooltipReactNode
tooltipPropsOmit<TooltipProps, "title" | "children">
variantIconButtonVariants
AlertDialogDescription
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
AlertDialogOverlay
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
containerHTMLElement
elevationLevelnumber
immediateboolean
initialIsOpenboolean
isOpenboolean
onClose() => void
onOutsideClickMouseEventHandler<HTMLDivElement>
returnFocusToElement
transitionFromElement
AlertDialogTitle
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
    Example
    Example
    References
    References
    API
    API
    AlertDialog
    AlertDialog
    AlertDialogActions
    AlertDialogActions
    AlertDialogBox
    AlertDialogBox
    AlertDialogClose
    AlertDialogClose
    AlertDialogDescription
    AlertDialogDescription
    AlertDialogOverlay
    AlertDialogOverlay
    AlertDialogTitle
    AlertDialogTitle
Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.

Copyright © 2018-2025 Sea Labs