really-simple-toast
v1.0.8
Published
Really simple toast notifications for vanilla JS
Downloads
17
Maintainers
Readme
Really Simple Toast
It's a light and simple package to show toast in your web with the all frameworks of JS. Disappear in 3.5 seconds or clicking.
Installation
Install the toast with npm
npm i really-simple-toast
Usage/Examples
import Toasted from 'really-simple-toast';
function App() {
Toasted.fire('User logged correctly', 'success');
}
Methods and properties
- Fire:
- First param : Text to show in toast
- Second param 'success' | 'error' | 'warning': Three differents styles, green, yellow or red.
- Third param : By default is false, is for dark mode, if your are building a two mode web maybe you want to change the toast to dark or light. It's just change background to black and text to white.
Contact
If you need to contact or need some specifications or suggestions write me! [email protected] (if you know, spanish better ;))