UNPKG

@upv/react-ui-core

Version:

**USHI Design System — Modern UI Component Library**

12 lines (11 loc) 523 B
export type ScrollBehaviorStrict = "smooth" | "auto"; export interface ScrollOptions { offset?: number; duration?: number; behavior?: ScrollBehaviorStrict; block?: ScrollLogicalPosition; inline?: ScrollLogicalPosition; easeFunction?: (t: number) => number; } export declare const useScrollToSection: (stickyHeaderId?: string) => (idOrElement: string | HTMLElement | null, options?: ScrollOptions) => void; export declare const useScrollSpy: (sectionIds: string[], offset?: number) => string | null;