Cogoport / cogo-toast

Beautiful, Zero Configuration, Toast Messages for React. Only ~ 4kb gzip, with styles and icons
https://cogoport.github.io/cogo-toast
MIT License
673 stars 1 forks source link

Add : a maximum number of toast to the container & clear all toast possibility #78

Open AaronActu opened 3 years ago

AaronActu commented 3 years ago

It would be really great if we could have a parameter to specify a maximum number of toast to the toast-container 🥇

Example : if I've instantiated 3 toasts and I set a limit of 1 toast per container, then the other two toasts are "pending". Once the toast n°1 has expired, it's the turn of the n°2, and so on...

Also, it'd be great to have a method to remove all the toast in a container (enqueued or not).

Thanks in advance !