Z
Zyeon UI

useScrollLock · Zyeon UI

A controlled body-scroll lock hook with scrollbar-width compensation and a reentrant lock counter for multiple simultaneous callers.

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

Not checked yet

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