@custom-react-hooks/use-lock-body-scroll
MIT`useLockBodyScroll` is a React hook for controlling the scroll behavior of the body element in web applications. It's particularly useful for scenarios like opening modals or overlays where background scroll needs to be disabled.
95
Security score
0 known advisories in v1.5.1
Weekly downloads
—
Unpacked size
8.0 kB
Dependencies
0
Last publish
1 year ago
Security advisories
No known vulnerabilities affect v1.5.1.