Confirm Modal

A modal component for confirmation dialogs.

Examples

Basic usage

Properties

Name Type Required Description
@onClose Function Yes Callback called when the modal is dismissed without confirming.
@onConfirm Function Yes Callback called when the user clicks the confirm button.
@cancelText string Yes Text label for the cancel button.
@confirmText string Yes Text label for the confirm button.
@confirmQuestion string Yes Question or message displayed in the modal body.
@isOpen boolean Yes Controls modal visibility. Set to true to open, false to close.