Automatically update navigation based on scroll position.
npm install @raddix/use-scroll-spyThe useScrollSpy hook is used to automatically update navigation based on scroll position. Use the IntersectionObserver API to subscribe to scroll position changes and return the current active navigation item.
Please refer to the documentation for more information.