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

how to listen for onClose events? #18

Closed justraman closed 2 years ago

justraman commented 2 years ago

I am poping a notification with a undo button so that the user can change his mind at the last second. I am thinking if we can have an onClose event or something so I can perform an action once after the toast/notification is closed.

notify(...params, onClose: Function)