Skip to content

chancovsky/avocado-toast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

avocado-toast

npm version

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.

About

Super lightweight toast notifications with zero dependencies πŸ₯‘πŸž

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published