toast-noti
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

toast-noti

Simple toast library

Install

npm i toast-noti

Usage

import Toast from 'toast-noti'
import 'toast-noti/dist/toast.style.css'
// You can custom CSS if you want.

const toast = new Toast({
    duration: 3000,
    position: 'top-right', // Can custom with CSS
    pauseOnHover: true,
    appendOnTopBody: true // If true, container auto append on body
})

toast.success('Message')
toast.error('Message')
toast.alert('Message')

Readme

Keywords

Package Sidebar

Install

npm i toast-noti

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

7.03 kB

Total Files

5

Last publish

Collaborators

  • hoaian2