By default a Confirm Dialog looks like an alert with a single confirm button. Use that when you need to show a modal alert dialog that requires an explicit acknowledgement.
You can add a cancel button to a Confirm Dialog. Use that when you want to let users cancel the confirmation prompt instead of confirming the action.
When the action being confirmed has a high impact, you may want to change the theme of the confirm button to 'error' to make it look more prominent.
You can add a reject button to a Confirm Dialog. Use that when you want to give users a choice between two actions: confirming or rejecting something. In order to create a 3-way "Save / Discard / Cancel" confirmation dialog, use both reject and cancel buttons together.
You can customize the buttons and the header of a Confirm Dialog by overriding the default DOM elements of the dialog with your own content through the corresponding slots. Use that when you need to replace some of the default buttons with your custom versions (e.g. to add icons).
Do you want to save or discard your changes before navigating away?