<vaadin-confirm-dialog> is a Web Component providing an easy way to ask the user to confirm a choice, part of the Vaadin components.
<vaadin-confirm-dialog header="Unsaved changes" confirm-text="Save" on-confirm="save"
cancel on-cancel="cancel" reject reject-text="Discard" on-reject="discard">
Do you want to save or discard your changes before navigating away?
</vaadin-confirm-dialog>