Skip to content

EnConfirmationModal

Preview

Props

NameDescriptionDefaultControl
qaId

Id that can be set for automation selectors.

string
""
title

Sets the modal title.

string
"Confirm"
canClose

Allows the modal to be closed without a confirm or cancel action.

boolean
true
showModal

Displays the modal. Should be controlled outside of the modal component.

boolean
false
confirmButtonText

Sets the text of the confirm button in the modal footer.

string
"Confirm"
cancelButtonText

Sets the text of the cancel button in the modal footer.

string
"Cancel"
messageText

Sets the message text in the modal body.

string
"Are you sure?"
useDangerClass

Sets the confirm button to the danger (red) context.

boolean
false
preventDisableOnConfirm

When true, the confirm button will not be disabled after clicking.

boolean
false

Slots

body

Replaces the message text.

footer

Replaces footer content.

Events

confirm

Emits when the confirm button is clicked.

Payload
NameTypeDescription
enableConfirmFunction

Convenience method to re-enable the confirm button (e.g. after a failed async operation).

cancel

Emits when the cancel button is clicked or the modal is closed.

Methods

No methods defined.

Examples

Slots