UNPKG

@thibault.sh/hooks

Version:

A comprehensive collection of React hooks for browser storage, UI interactions, and more

12 lines (10 loc) 260 B
interface ScrollPosition { x: number; y: number; } /** * Hook that tracks window scroll position * @returns Object containing current scroll x and y coordinates */ declare function useScrollPosition(): ScrollPosition; export { useScrollPosition };