1.0.1 • Published 4 years ago

you-toast v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

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
});
1.0.1

4 years ago

1.0.0

4 years ago