use-headroom
Create headers that are hidden after user scrolls past given distance
Source
Docs
Package
Usage
Use use-headroom hook to create headers that are hidden after user scrolls past the given distance in px.
The hook returns a boolean value that determines whether the element should be pinned or hidden.
Hook returns true when the current scroll position is less than the specified fixedAt value and
after user scrolled up.
Header is pinned
Definition
Exported types
UseHeadroomOptions type is exported from @mantine/hooks package, you can import it in your application: