give custom icon in sweetalert2 code example Example: change icon in sweet alert swal({ icon: "error",});