use-headroom
Create headers that are hidden after user scrolls past given distance
Source
Docs
PackageIcon
Usage
The use-headroom hook creates headers that are hidden after the user scrolls past a given distance in pixels.
The hook returns a boolean value that determines whether the element should be pinned or hidden.
It returns true when the current scroll position is less than the specified fixedAt value and
after the user has scrolled up.
Header is pinned
Definition
Exported types
The UseHeadroomOptions type is exported from @mantine/hooks;