Cheese toast
Straightforward toast with no dependencies
Usage
Import cheese-toast
by including the following script tag in your HTML:
<script src="https://unpkg.com/cheese-toast"></script>
The factory function CheeseToast
is now available to construct new toast instances. If you wish to close the popup programmatically, you can call the hide
method on the instance.
new CheeseToast({
text: 'Success!',
className: 'toast', // handy for styling
})
Contributing
This project is open to and encourages contributions! Feel free to discuss any bug fixes/features in the issues. If you wish to work on this project:
- Fork this project
- Create your feature branch (
git checkout -b new-feature-branch
) - Commit your changes (
git commit -am 'add new feature'
) - Push to the branch (
git push origin new-feature-branch
) - Submit a pull request!