you-toast
v1.0.1
Published
Create a temporary Toast element like what you do with Android.
Downloads
2
Readme
You-toast
This module can help you create a dialog, which will fade out soon, like the Toast object in Android.
It supports both JS and TS.
example:
import toast from "you-toast";
toast("Hello, World!");
// Beware, this method will be disabled after being called,
// and later turns back to active.
// Thus, you can only get the first message in the case as follow:
setTimeout(() => {
toast("msg 1");
toast("msg 2"); // This one will be blocked
});