myg-toast
v0.13.8
Published
Toasts can notify users.
Downloads
3
Readme
Toasts
Usage
Stylesheets
@import "myg-toast/toast"
// Include classes (optional)
+myg__classes--toast
Javascript
import MygToast from 'myg-toast';
document.addEventListener( 'ready', () => {
const mygToast = new MygToast( document.querySelector('.myg-toast'), {} );
})
or
import * as myg from 'myg/src/myg';
const MygToast = myg.MygToast;
document.addEventListener( 'ready', () => {
const mygToast = new MygToast( document.querySelector('.myg-toast'), {} );
})