notification
notification copied to clipboard
Allow to be closed with a click anywhere in the toast
Currently, when closable is true, a close button is displayed.
Some users complain because it is somehow tedious to click on a small button and would prefer to click anywhere in the toast to close it.
Most of notifications libraries allow it, see eg https://github.com/fkhadra/react-toastify
We can add a closeOnClick prop.
We can add a closeOnClick prop.
Looks good. thx for your quick answer !