Feedback & Status

Alert Dialog

Alert dialogs are a specific type of Dialog.

Alert dialogs are a specific type of Dialog. They display important information that users need to acknowledge.

Component props#

NameTypeDescription
titleReactNodeDialog title
descriptionReactNodeDialog description
isDangerbooleanShows confirm button as danger variant
isConfirmDisabledbooleanDisables the confirm button
confirmLabelReactNodeConfirm button text (default: "Confirm")
cancelLabelReactNodeCancel button text (default: "Cancel")
onConfirm() => void | Promise<unknown>Called when confirm is clicked. When it returns a promise the dialog stays open until it resolves, and stays open on rejection
onCancel() => voidCalled when cancel is clicked