nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
4.13k stars 544 forks source link

feat(Notification): add `pauseTimeoutOnHover` prop #2661

Closed HarshPatel5940 closed 10 hours ago

HarshPatel5940 commented 1 week ago

๐Ÿ”— 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:

๐Ÿ“ Checklist

HarshPatel5940 commented 1 week 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.

sandros94 commented 1 week ago

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

HarshPatel5940 commented 6 hours ago

Thank you boss!