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