Dialog
A flexible and asynchronous confirmation dialog component used to interrupt users with important prompts, supporting custom variants, icons, and Promise-based flows.
Basic Action
Ideal for standard user confirmations like submitting a form or saving preferences.
Warning Action
Useful for actions that require caution, such as resetting configurations or restoring default values.
Destructive Action
Ideal for critical actions such as deleting a customer or database record permanently.
Approval Action
Great for confirming workflow transitions, like approving an invoice or order.
Documentation
| Option | Type | Default | Description |
|---|---|---|---|
title |
string |
'Confirm' |
The header title of the dialog. |
message |
string |
'Are you sure?' |
The descriptive text message inside the dialog. |
html |
string |
undefined |
Custom HTML content (takes precedence over message if provided). |
confirmText |
string |
'Accept' |
Text label for the confirmation button. |
cancelText |
string |
'Cancel' |
Text label for the cancel button. |
showCancelButton |
boolean |
true |
Determines whether the cancel button is visible. |
variant |
string |
'primary' |
Button variant style (primary, destructive, warning, success, info). |
icon |
string | false |
'question' |
Icon type (warning, question, info, success, error) or false to hide it. |