1.0.3 • Published 3 years ago

toast-alex v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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 addToast function

npm.io

API

addToast function can take an object with some properties as argument. All properties are listed below.

PropertyTypeValue
delayNumberAuto close time
typeinfo | warning | error | successType of toast
titleStringToast message
animationdrop | leftAnimation of appearance and disappearance
backgroundcolorStringToast background color
margins{ top: Number, right: Number, bottom: Number, left: Number }Toast margins
positionleft | center | rightToast position
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago