Skip to content
JS
Package

react-scrolllock

Prevent scroll on the body when component is mounted.

v5.0.1, 19 Feb 2020MITCommonJSTypes: BundledDOM and browser utilitiesReact
$ npm install react-scrolllock

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
050k100k150k200kSept 2025Mar 2026Sept 2026High 185.4k (28 Oct 2025)Low 53.8k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-scrolllock@5.0.1/
  • unpkghttps://unpkg.com/react-scrolllock@5.0.1/
  • esm.shhttps://esm.sh/react-scrolllock@5.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
react-scroll-into-view-if-needed6.2k-5 years agoESM + CommonJS-
react-scroll-trigger5.4k-4 years agoESM + CommonJS-
react-indiana-drag-scroll81.5k-1 year agoESM + CommonJS-
react-scrollbars-custom52.1k-4 years agoESM + CommonJS-
react-scroll-parallax49.7k-11 months agoESM + CommonJS-
lenis1.1m-1 month agoESM only-
react-horizontal-scrolling-menu80.4k-25 days agoESM + CommonJS-
@faceless-ui/scroll-info538.2k-1 year agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.