Overview
ConfirmDialog is used to confirm user actions with accept/reject callbacks. It works with theMagaryConfirmationService to show confirmation prompts.
Import
Basic Usage
Custom Labels
Multiple Dialogs with Keys
Hide Buttons
Input Properties
Header text for the dialog
Icon to display in the dialog
Message text to display
Key to match specific confirmation requests
Label for the accept button
Label for the reject button
Icon for the accept button
Icon for the reject button
Show/hide the accept button
Show/hide the reject button
Whether clicking the backdrop dismisses the dialog
Close dialog on Escape key
Confirmation Interface
Service API
Show a confirmation dialog
Close the active confirmation dialog
Features
- Service-based: Trigger from anywhere in your app
- Multiple instances: Support multiple dialogs with keys
- Customizable: Override all labels and icons
- Button visibility: Show/hide accept or reject buttons
- Callbacks: Accept and reject handlers
- Keyboard support: Escape to close
Accessibility
- Uses underlying dialog component’s accessibility features
- Proper focus management
- Keyboard navigation
- ARIA attributes
