react-active-menu
Version:
A React hook to build an active scrolling menu navigation.
12 lines (11 loc) • 327 B
TypeScript
export interface ActiveMenuOptions {
activeClassName?: string;
offset?: number;
smooth?: boolean;
}
export interface ActiveMenuValues {
activeId?: string;
registerContainer: (el: any) => void;
registerSection: (id: string) => (el: any) => void;
registerTrigger: (id: string) => (el: any) => void;
}