UNPKG

@shashi_srinath/react-ui-scrollspy

Version:
17 lines (16 loc) 768 B
import { MutableRefObject, ReactNode } from "react"; interface ScrollSpyProps { children: ReactNode; navContainerRef?: MutableRefObject<HTMLDivElement | null>; parentScrollContainerRef?: MutableRefObject<HTMLDivElement | null>; scrollThrottle?: number; onUpdateCallback?: (id: string) => void; offsetTop?: number; offsetBottom?: number; useDataAttribute?: string; activeClass?: string; useBoxMethod?: boolean; updateHistoryStack?: boolean; } declare const ScrollSpy: ({ children, navContainerRef, parentScrollContainerRef, scrollThrottle, onUpdateCallback, offsetTop, offsetBottom, useDataAttribute, activeClass, useBoxMethod, updateHistoryStack, }: ScrollSpyProps) => JSX.Element; export default ScrollSpy;