Git21221 / form-snippet

A simple form that made on top of MUI components and uses react hook form for validation.
https://www.npmjs.com/package/form-snippet
MIT License
5 stars 14 forks source link

[feature]: Add Back to Top Functionality #30

Open faiz66388 opened 1 month ago

faiz66388 commented 1 month ago

Is your feature request related to a problem? Please describe. I often find it frustrating when users scroll down long forms and cannot easily return to the top to view or edit their inputs. This lack of navigation makes the experience cumbersome, especially when using the form validation features.

Describe the solution you'd like I would like to implement a "Back to Top" button that appears when the user scrolls down the form. Clicking this button should smoothly scroll the page back to the top, allowing users to quickly navigate without having to manually scroll.

Describe alternatives you've considered One alternative could be to have a keyboard shortcut (like pressing the "Home" key) that takes the user back to the top. However, a dedicated button is more user-friendly and visually accessible, especially for users who may not be familiar with keyboard shortcuts.

github-actions[bot] commented 1 month ago

👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!

Git21221 commented 1 month ago

@faiz66388 sure please add this 🥲🥲🥲

faiz66388 commented 1 month ago

Could you please assign the labels gssoc-ext, hacktoberfest-accepted and level?