Package
react-scrolllock
Prevent scroll on the body when component is mounted.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 134.5k
- +6% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 6 years ago
- v5.0.1
- GitHub stars
- 467
- 42 forks
- Open issues / PRs
- 0 / 25
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
134,458 downloads last week, 630,505 in the last month. The 12-month change of +6% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 5.0.1, 19 Feb 20206 years ago
- First published
- -
- Last push to GitHub
- 20 Feb 20231,313 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 25
- Commits, last 52 weeks
- 0
- Dependents on npm
- 190
Major versions
-
Recent releases
-
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 26 kB
- Dependencies (1)
exenv- Peer dependencies (1)
react
npm install react-scrolllock- jsDelivr
https://cdn.jsdelivr.net/npm/react-scrolllock@5.0.1/ - unpkg
https://unpkg.com/react-scrolllock@5.0.1/ - esm.sh
https://esm.sh/react-scrolllock@5.0.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| react-scroll-into-view-if-needed | 6.2k | - | 5 years ago | ESM + CommonJS | - |
| react-scroll-trigger | 5.4k | - | 4 years ago | ESM + CommonJS | - |
| react-indiana-drag-scroll | 81.5k | - | 1 year ago | ESM + CommonJS | - |
| react-scrollbars-custom | 52.1k | - | 4 years ago | ESM + CommonJS | - |
| react-scroll-parallax | 49.7k | - | 11 months ago | ESM + CommonJS | - |
| lenis | 1.1m | - | 1 month ago | ESM only | - |
| react-horizontal-scrolling-menu | 80.4k | - | 25 days ago | ESM + CommonJS | - |
| @faceless-ui/scroll-info | 538.2k | - | 1 year ago | ESM only | - |
Indexability: Indexed.