hookas

Registry for most popular React hooks based on the shadcn/ui.

Website

Scroll & Viewport

useIsInViewport

(use-is-in-viewport)

hook

A hook to check if an element is in the viewport

View

use-is-in-viewport.ts

useIsScrolled

(use-is-scrolled)

hook

A hook to check if an element is scrolled

View

use-is-scrolled.ts

useIsWindowScrolled

(use-is-window-scrolled)

hook

A hook to check if the window is scrolled

View

use-is-window-scrolled.ts

useScrollDirection

(use-scroll-direction)

hook

A hook to track the scroll direction

View

use-scroll-direction.ts

useScrollInfo

(use-scroll-info)

hook

A hook to get the scroll info of an element

View

use-scroll-info.ts