avocado-toast
v0.2.0
Published
Super lightweight toast notifications with zero dependencies ๐ฅ๐
Downloads
8
Maintainers
Readme
avocado-toast
Super lightweight toast notifications with zero dependencies ๐ฅ๐
Getting Started
Currently, avocado-toast is distributed via npm with no dependencies.
npm install --save avocado-toast
Usage
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!"})
Options
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).
Contributing
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
Authors
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License. See the LICENSE file for details.