Confirm in sweetalert code example Example: confirm sweet alert swal("Are you sure?", { dangerMode: true, buttons: true,});