1.0.8 • Published 11 months ago
really-simple-toast v1.0.8
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! danirdev96@gmail.com (if you know, spanish better ;))