1.0.1 • Published 4 years ago
you-toast v1.0.1
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
});