Skip to content

Confirm

Generic confirmation dialog component.

PropTypeDefaultDescription
isOpenbooleanfalseWhether dialog is shown
titleReactNode-Title (i18n key or node)
contentReactNode-Body content
cancelstringra.action.canceli18n key for cancel
confirmstringra.action.confirmi18n key for confirm
confirmColor"primary"|"warning"primaryStyle variant
ConfirmIconComponentTypeCheckCircleIcon for confirm
CancelIconComponentTypeAlertCircleIcon for cancel
loadingboolean-Disable buttons while true
onClose() => void-Close handler
onConfirm(e) => void-Confirm handler
  • Supports undo-like UX only externally (no internal undo logic).
  • Variant ‘warning’ maps to destructive button style.