Docs
πŸ—οΈ ⏐ Components
Layers
Confirm Dialog πŸ†•

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

PropDescriptionDefault
open *Whether the dialog is open or not
boolean
header *The header of the dialog
ReactNode
content *The content of the dialog
ReactNode
confirmLabelThe label for the confirm button
string
Confirm
cancelLabelThe label for the cancel button
string
Cancel
onConfirmCallback when the confirm button is clicked
() => void
onCancelCallback when the cancel button is clicked
() => void