useScrollTop

This hook tracks the window scroll position and returns a boolean value indicating whether the user has scrolled past the top of the page.

Example

returnDescriptionTypeDefault
isStickyIndicates whether the page has been scrolled from the top (i.e., if the element should be sticky).boolean