simple scrollspy component for react
npm install react-scrollspy-ez> simple scrollspy component for react
 
``bash`
npm install --save react-scrollspy-ez
`tsx
import * as React from "react";
import Scrollspy from "react-scrollspy-ez";
class Example extends React.Component {
render() {
return
}
}
`
- ids - dom id of the page element to trackoffset
- - scroll offset (in pixels), if your page elements have lots of padding. Default is 2.itemContainerClassName
- - class for the whole scrollspy menuactiveItemClassName
- - class for the active menu itemcontainerElement
- - a JSX element for the whole menu (default is ul)itemElement
- - a JSX element for each menu item, default is li`
MIT © telega