fkhadra / fkhadra/react-toastify

Feature: prop for passing function when close button is clicked

Open
#1,117 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
13.4k
Forks
741
PR merge metrics
No merged PRs in 30d

Description

**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.
-- | -- | --

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.