Extensions

Press shift + S to search API reference.

React component

ConfirmationDialog

View source

Props

interface ConfirmationDialogProps extends DialogStyleProps
backgroundClassNameundefined | string

Extra classNames to apply to the background element, separated by spaces.

backgroundStyleReact.CSSProperties

Extra styles to apply to the background element.

bodyReact.ReactNode | string

The body of the dialog. When it’s a string it will automatically be wrapped in a Text component.

cancelButtonTextundefined | string

The label for the cancel button. Defaults to 'Cancel'.

classNameundefined | string

Extra classNames to apply to the dialog element, separated by spaces.

confirmButtonTextundefined | string

The label for the confirm button. Defaults to 'Confirm'.

isCancelButtonDisabledundefined | false | true

Whether the cancel button can be interacted with. Defaults to false.

isConfirmActionDangerousboolean

Whether the action is dangerous (potentially destructive or not easily reversible). Defaults to false.

isConfirmButtonDisabledundefined | false | true

Whether the confirm button can be interacted with. Defaults to false.

onCancelfunction () => unknown

Cancel button event handler. Handles click events and Space/Enter keypress events.

onConfirmfunction () => unknown

Confirm button event handler. Handles click events and Space/Enter keypress events.

styleReact.CSSProperties

Extra styles to apply to the dialog element.

titlestring

The title of the dialog.