UNPKG

@n8tb1t/use-scroll-position

Version:
10 lines (7 loc) 186 B
import type { RefObject } from 'react' export type Ref<El extends Element = HTMLDivElement> = RefObject<El | null> | null export interface ScrollPosition { x: number y: number }