Super lightweight toast notifications with zero dependencies π₯π
Currently, avocado-toast is distributed via npm with no dependencies.
npm install --save avocado-toast
Creating toasts is super simple, first you create a new instnce of the AvocadoToast class.
var notifications = new AvocadoToast();
then create a new toast using the creat(options) method.
notifications.create({text: "I β€οΈ avocado toast!"})
When creating a new toast notification you have a couple options to pass in. More options will be coming in future updates!
- text {string} : The text that will appear within the toast.
- delay {int} : How long the toast will last before it disappears.
- bg {string} : Set the background color for the toast (hex, rgb, rgba).
If you feel like contributing to this project, all help will be welcome!
git clone https://github.com/chancovsky/avocado-toast.git
cd avocado-toast
npm install
See also the list of contributors who participated in this project.
This project is licensed under the MIT License. See the LICENSE file for details.