@mantine/notifications
Allow global notifications auto close customization w/ call context
#5383
dillonstreator
started this conversation in
Feature requests
Replies: 1 comment
-
@rtivital do you have any opinions on this? My user-base happens to be slow readers, and this would help out quite a bit. I'm willing to continue the work on #5329 if there are any issues with the PR or if @dillonstreator is unavailable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to propose extending the
autoClose
functionality by allowing a callback to be specified (in addition to the existingnumber | false
) that receives theNotificationData
and returnsnumber | false
. This enables creating a "global" default ruleset/config on theNotifications
component.This global config should be overridable at the time of calling
showNotification
by specifyingautoClose
.Here is an example of what the implementation could look like #5329
Beta Was this translation helpful? Give feedback.
All reactions