@ehubbell/scrollspy
Version:
A lightweight scrollspy library for React projects.
24 lines (19 loc) • 637 B
TypeScript
// Generated by dts-bundle-generator v9.5.1
import { ReactNode, RefObject } from 'react';
export interface ScrollSpyProps {
navRef?: RefObject<HTMLDivElement | null>;
activeClass?: string;
dataAttribute?: string;
offsetTop?: number;
offsetBottom?: number;
throttle?: number;
updateHistory?: boolean;
onUpdate?: (id: string) => void;
children: ReactNode;
debug?: boolean;
}
declare const ScrollSpy: ({ navRef, activeClass, dataAttribute, offsetTop, offsetBottom, throttle, updateHistory, onUpdate, debug, children, }: ScrollSpyProps) => import("react/jsx-runtime").JSX.Element;
export {
ScrollSpy as default,
};
export {};