It's an alert library build with JavaScript. You can replace your traditional JavaScript alert, confirm with the library. It has also extra component like toast and loader.
npm i asteroid-alert --save import {$alert, $confirm, $toast, $loader_show, $loader_hide} from asteroid-alert
Website: https://asteroid-alert.netlify.app/
$confirm("Do you want to delete?", "#E74C3C") .then(() => { $toast("Deleted", "#E74C3C"); })
$alert("Successfull", '#E74C3C') $toast("No internet connection", "#F4D03F") $loader_show("#FF5733") If you don't provide any color code it will take default color $loader_hide() If you don't provide any color code it will take default color