use-window-scroll
Tracks window scroll position
Source
Docs
PackageIcon
Usage
The use-window-scroll hook returns the current scroll position and a function to scroll smoothly to a given position:
Scroll position x: 0, y: 0
Definition
Exported types
The UseWindowScrollTo, UseWindowScrollPosition, and UseWindowScrollReturnValue types are exported from @mantine/hooks;