ConfirmationModal
Confirmation Modals appear after users attempt to trigger an action with an effect that is irreversible or hard to reverse, such as deleting items.
Optional props
onClose
Callback fired when the backdrop or close button is clicked.
onConfirm
Callback fired when the ok button is clicked.
onCancel
Callback fired when the cancel button is clicked.
open
Whether the modal is open or not.
disabled
Whether the confirm actions is disabled.
critical
Whether the confirm actions is critical.
locale
The BCP47 language code for the locale.
messages
Object containing all messages to be displayed internally in the modal. They include "title", "ok" and "cancel".
Related components
Modal
Modal displays content related to a minor job within a page's main job. It demands complete attention and blocks interactions outside the overlay.
Alert
Alerts call attention to a semantic message and load alongside the rest of the page content. They can optionally be dismissed upon user action.
Toast
Toasts can appear at any time to provide instant feedback on actions. They are usually temporary, but can also require the user to dismiss.