Appearance
A lightweight, SSR-safe scroll locking library with reference counting support.
Multiple locks on the same element work properly
Works seamlessly in server-side rendering environments
Lock body, or any HTMLElement
Cancels touch scrolling on iOS, except inside elements that can still scroll
Optionally keeps the layout still when the scrollbar disappears
createScrollLock() gives a library or widget its own lock registry
Full type safety out of the box
Minimal bundle size with zero dependencies