@raddix/use-scroll-spy
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

useScrollSpy

The 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.

Package Sidebar

Install

npm i @raddix/use-scroll-spy

Homepage

raddix.dev

Weekly Downloads

40

Version

0.1.2

License

MIT

Unpacked Size

5.11 kB

Total Files

6

Last publish

Collaborators

  • immois