react-smooth-scrollbar-z
Version:
A React wrapper for Smooth Scrollbar with hooks and plugin support
19 lines (18 loc) • 496 B
TypeScript
import { ScrollbarPlugin } from "smooth-scrollbar";
export interface AnchorPluginOptions {
duration: number;
align: "start" | "center" | "end";
activeClass: string;
offset: number;
selector: string;
}
declare class AnchorPlugin extends ScrollbarPlugin {
static pluginName: string;
static defaultOptions: AnchorPluginOptions;
private _handleClick?;
private _links;
onInit(): void;
onRender(): void;
onDestroy(): void;
}
export default AnchorPlugin;