0.1.8 • Published 7 years ago

toasts-and-modal v0.1.8

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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

License

This project is licensed under the MIT License

Acknowledgments

  • iTechArt
0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.0.1

7 years ago