Analogous to the
window.confirm()
function in web browser JavaScript. The popup is
modal.
It is useful when you need to get a yes/no answer back from the user, e.g. “Are you sure you want
to delete this item?”.
API
Options
The title of the confirm pop-up.
The text of the confirm pop-up.
The label for the confirm button.Defaults to "OK".
The label for the cancel button.Defaults to "Cancel".
'primary' | 'secondary' | 'secondary-destructive' | 'destructive'
The style of the confirm button.Defaults to "primary".