emmanuelsw / notiwind

A headless Vue 3 notification library to use with Tailwind CSS.
https://notiwind-demo.netlify.app
MIT License
277 stars 28 forks source link

Add ability to specify INFINITE_TIMEOUT #39

Closed krydos closed 1 year ago

krydos commented 1 year ago

hey @emmanuelsw, Thanks for the library!

We use it in our project and there are some cases when we want to keep this notification on the screen forever. To do so we specify weird timeouts like 99999999. Looking through the repo I found this discussion https://github.com/emmanuelsw/notiwind/discussions/12 and I totally agree that -1 makes a lot of sense to use as "infinite timeout" argument.

In this PR I've added INFINITE_TIMEOUT const, updated readme and updated the example page.

I'm not sure if I should commit dist files too, please let me know if I should. Also let me know if you have better idea on how to implement it.

Thanks!

emmanuelsw commented 1 year ago

Hey! Thank you for the PR. I think it's a decent solution so I'll release it in the next version.

emmanuelsw commented 1 year ago

Released in 2.0.1!