0.1.8 • Published 7 years ago
toasts-and-modal v0.1.8
Toasts and modal
Toasts and modal for my app
Getting Started
Installing
Install package
npm i tosters-and-modal --save
Add styles that you need from src/components to your html
Add fontawesome to your project
Add container to your html for toasts if u need them
<div class="toasts-container"></div>
Usage
Exctract Toast or Modal from ToastOrModal :)
import ToastOrModal from `toasts-and-modal`;
var Toast = ToastOrModal.Toast;
Pass container's selector to toast's constructor
var toast = new Toast(type, text, timeToDelete, "toast-container");
Pass type (info, error, warning, success), text, and time to delete
var toast = new Toast(type, text, timeToDelete, "toast-container");
Authors
- Tim Samoylov - Initial work - Timikcool
License
This project is licensed under the MIT License
Acknowledgments
- iTechArt