Zero dependency notifications in Vanilla JS
- copy toasty.js into your project
- include it in your html file
- done
optional steps:
- Adjust the CSS at the bottom of the file to your liking
The general parameters are ("message", timeoutInSeconds) If no timeout is given, the message will stay until manually dismissed by the user
Currently there are success, error and info messages implemented:
toasty.success("Toasty initialized!");
toasty.info("dependency free is better", 10);
toasty.error("Something went wrong", 10);