Sweetalert

SweetAlert2 provides beautiful, customizable, and accessible popups. For more details

Installing via npm
npm install sweetalert2
Script
const swalEvent = () => {
    Swal.fire({
    title: "Added!",
    text: "Your item has been added to the cart.",
    icon: "success",
    confirmButtonText: "Ok",
    background: "#141314",
    color: "#ffffff",
  });
};