asteroid-alert

2.0.5 • Public • Published

asteroid-alert

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.

For npm installation

npm i asteroid-alert --save import {$alert, $confirm, $toast, $loader_show, $loader_hide} from asteroid-alert

Functions

$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

Readme

Keywords

Package Sidebar

Install

npm i asteroid-alert

Weekly Downloads

1

Version

2.0.5

License

ISC

Unpacked Size

13.4 kB

Total Files

3

Last publish

Collaborators

  • khanmdsagar007