You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thanks for this great tool. I was wondering if it is expected to add a feature to allow the user to click on an "x" and close a notification? Will a PR for this be accepted?
The text was updated successfully, but these errors were encountered:
I have been thinking about this. I'm thinking that an onClick handler on the whole notification makes more sense.
PRs are of course welcome 👍
An x also makes sense. but should be toggable, disabled by default and should probably be an inline SVG icon, since the module doesn't come bundled with any fonts/icons.
Right now, the annoying/hacky way to do it, is by passing JSX markup directly to the show function, and rendering your x icon inside, with an onClick handler attached to the close function.
(Would not recommend to do it this way, but it would in theory solve the need)
Hello and thanks for this great tool. I was wondering if it is expected to add a feature to allow the user to click on an "x" and close a notification? Will a PR for this be accepted?
The text was updated successfully, but these errors were encountered: