Z
Zyeon UI

useScrollDirection · Zyeon UI

A scroll-direction hook that only re-renders on up/down flips, with a displacement threshold to ignore jitter.

npx shadcn@latest add @zyeon/use-scroll-direction
Preview useScrollDirection on Zyeon UI's site (opens in a new tab)

Not checked yet

Zyeon UI limits how often it can be asked, and useScrollDirection hasn't had its turn. Its source will show here once it has.