1.0.4 • Published 5 years ago

@msic89/toastly v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

toastly

Installation
npm install @msic89/toastly
How use basic
import Toastly from "@msic89/toastly"

const toastly = new Toastly();

toastly.error("Network error")
Advanced options
const toastly = new Toastly();

toastly.success("Hello world", {
    dismissible: false,
    duration: 2000,
})
Custom toast
const toastly = new Toastly()

toastly.show(`Send us <b>an email</b> to get support`, {
    position: "top-center",
    background: "coral",
    color: "#000",
});
Available methods
  • sucess
  • info
  • error
  • show
  • warning
1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago