react-scroll-spyy
v1.0.4
Published
A React component to track section visibility and active links in a scrollable page.
Downloads
265
Maintainers
Readme
ScrollSpy React Component
A simple and customizable ScrollSpy React component that highlights navigation links based on the user's scroll position. This component allows you to track sections on a page and smoothly scroll to them when clicked.
Features
- Highlights navigation links when their corresponding section is in view.
- Smooth scrolling to sections when clicking on navigation links.
- Customizable active link class.
- Supports dynamic sections and can track visibility based on the scroll position.
- Easily configurable for any project or page structure.
Installation
To install the package, run the following command:
npm install scrollspy-react