0.0.2 • Published 5 years ago
toast-message v0.0.2
ToastMessage
This library was generated with Angular CLI version 8.2.0.
Code scaffolding
Usage
npm i toast-message
then in HTML
<Ngx-ToastMessage [message]="'hello Good morning'" [animationType]="'toast-animate-from-bottom'" [addClass] = "'toastMessageClass'"></Ngx-ToastMessage>
Message : content you want to display
animation type : toast-animate-from-bottom | toast-animate-from-top
addClass : your custom class name , ex : toastMessageClass
Customize specific styles: see below code .toastMessageClass{ background: green!important;; color: #fff!important;; .message{
}
.close-btn{
color:#fff !important;
}
}
You can check code README.
MIT licence