Closed HarshPatel5940 closed 10 hours ago
More context, this PR will allow users to perform toasts which don't stop the timeout when we hover.
My field name might be improvised, please suggest me better if you have. I really needed this flexibility inside the toast
so i have made a PR.
I was unsure which part in the documentation you would like to be updated?
You can add that information here, with the related boolean prop
:
https://github.com/nuxt/ui/blob/d0e626c55185ba93dd07eb71167e3e6aeed4a013/docs/content/2.components/notification.md?plain=1#L138-L153
Thank you boss!
๐ Linked issue
Not linked to an issue.
โ Type of change
๐ Description
This pull request includes changes to the
Notification
component to add a new feature and improve user interaction. The most important changes include adding a new prop to control the pause behavior on hover and updating the mouse event handlers to respect this new prop.Enhancements to
Notification
component:src/runtime/components/overlays/Notification.vue
: Added a newpauseTimeoutOnHover
prop to allow control over whether the timeout is paused when the notification is hovered.src/runtime/components/overlays/Notification.vue
: UpdatedonMouseover
andonMouseleave
methods to check the newpauseTimeoutOnHover
prop before pausing or resuming the timer.๐ Checklist