toastit
v2.1.3
Published
Utility function to toast a message at the bottom of the page with timing feature.
Downloads
72
Readme
toastit
Utility function to toast a message at the bottom of the page with timing feature.
Note: It's using @material/mwc-snackbar
in the background.
Installation
npm i -D toastit
Usage
import {toast} from 'toastit';
toast('Hi');
toast('How is it going?', {leading: true, timeoutMs: 1000 * 5}); // 5s before it auto closes