Confirm Dialog
The ConfirmationDialog
component is a dialog that prompts the user to confirm an action.
It is a wrapper around the Dialog
component that provides a simple API for creating
confirmation dialogs.
Examples
API
Prop | Description | Default |
---|---|---|
open * | Whether the dialog is open or notboolean | |
header * | The header of the dialogReactNode | |
content * | The content of the dialogReactNode | |
confirmLabel | The label for the confirm buttonstring | Confirm |
cancelLabel | The label for the cancel buttonstring | Cancel |
onConfirm | Callback when the confirm button is clicked() => void | |
onCancel | Callback when the cancel button is clicked() => void |