1.0.3 • Published 4 years ago
toast-alex v1.0.3
Toast-alex
This is a toast library that allows you to call toasts from anywhere in the application
Qiuckstart guide
- Add a
<ToastContainer />component to the root of your project like in the screenshot below - Then you can import and use
addToastfunction

API
addToast function can take an object with some properties as argument.
All properties are listed below.
| Property | Type | Value |
|---|---|---|
| delay | Number | Auto close time |
| type | info | warning | error | success | Type of toast |
| title | String | Toast message |
| animation | drop | left | Animation of appearance and disappearance |
| backgroundcolor | String | Toast background color |
| margins | { top: Number, right: Number, bottom: Number, left: Number } | Toast margins |
| position | left | center | right | Toast position |