fkhadra / react-toastify

React notification made easy 🚀 !
https://fkhadra.github.io/react-toastify/introduction
MIT License
12.33k stars 676 forks source link

Feature: prop for passing function when close button is clicked #1117

Open CalvinJamesHeath opened 1 month ago

CalvinJamesHeath commented 1 month ago

Do you want to request a feature or report a bug? Feature What is the current behavior? The current behaviour is that I have to create a new button so I can pass an onClick listener, but the one by default its fine.

Would be nice to add a new prop like: onButtonClose function Called when the notification close button is clicked.
sbsangu commented 1 month ago

Hello,

I've linked the pull request to address the feature request. It would be really helpful if someone could take a moment to review the proposed changes. Your feedback would be greatly appreciated!