Skip to content
JS
Package

solid-prevent-scroll

SolidJS utility that prevents scrolling outside of a given DOM element. Works by preventing events that else would lead to scrolling.

v0.1.11, 31 Jul 2026MITESM onlyTypes: BundledDOM and browser utilitiesUI component libraries
$ npm install solid-prevent-scroll

Key numbers

As of 25 Sept 2026
Weekly downloads
736.8k
+839% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
1 month ago
v0.1.11
GitHub stars
725
16 forks
Open issues / PRs
14 / 0
Contributors
-
Commits, last 52 weeks
4

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 736.8k (15 Sept 2026)Low 51.8k (21 Oct 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

736,813 downloads last week, 2,130,497 in the last month. The 12-month change of +839% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
112 in total
Latest version
0.1.11, 31 Jul 20261 month ago
First published
10 Jan 2024
Last push to GitHub
24 Aug 202631 days before the snapshot
Repository archived
No
Open issues
14
Open pull requests
0
Commits, last 52 weeks
4
Dependents on npm
11

Major versions

  1. v0 first release 0.1.0, 10 Jan 2024

Recent releases

VersionPublished
0.1.1131 Jul 2026
0.1.1019 Aug 2024
0.1.94 Jul 2024
0.1.819 Jun 2024
0.1.713 May 2024
0.1.617 Mar 2024
0.1.527 Feb 2024
0.1.426 Feb 2024
0.1.326 Feb 2024
0.1.27 Feb 2024
0.1.128 Jan 2024
0.1.010 Jan 2024
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
18 kB
Dependencies (1)
@corvu/utils
Peer dependencies (1)
solid-js
npm install solid-prevent-scroll
  • jsDelivrhttps://cdn.jsdelivr.net/npm/solid-prevent-scroll@0.1.11/
  • unpkghttps://unpkg.com/solid-prevent-scroll@0.1.11/
  • esm.shhttps://esm.sh/solid-prevent-scroll@0.1.11
PackageWeekly downloadsGzipLast releaseModuleComparison
@zag-js/clipboard763k-11 days agoESM + CommonJS-
scrollbooster19.9k-6 years agoESM + CommonJS-
@better-scroll/slide8.8k-3 years agoESM + CommonJS-
react-horizontal-scrolling-menu80.4k-25 days agoESM + CommonJS-
@zag-js/hotkeys196.3k-11 days agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.