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.
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
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
- v0 first release 0.1.0, 10 Jan 2024
Recent releases
| Version | Published |
|---|---|
| 0.1.11 | 31 Jul 2026 |
| 0.1.10 | 19 Aug 2024 |
| 0.1.9 | 4 Jul 2024 |
| 0.1.8 | 19 Jun 2024 |
| 0.1.7 | 13 May 2024 |
| 0.1.6 | 17 Mar 2024 |
| 0.1.5 | 27 Feb 2024 |
| 0.1.4 | 26 Feb 2024 |
| 0.1.3 | 26 Feb 2024 |
| 0.1.2 | 7 Feb 2024 |
| 0.1.1 | 28 Jan 2024 |
| 0.1.0 | 10 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- jsDelivr
https://cdn.jsdelivr.net/npm/solid-prevent-scroll@0.1.11/ - unpkg
https://unpkg.com/solid-prevent-scroll@0.1.11/ - esm.sh
https://esm.sh/solid-prevent-scroll@0.1.11
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @zag-js/clipboard | 763k | - | 11 days ago | ESM + CommonJS | - |
| scrollbooster | 19.9k | - | 6 years ago | ESM + CommonJS | - |
| @better-scroll/slide | 8.8k | - | 3 years ago | ESM + CommonJS | - |
| react-horizontal-scrolling-menu | 80.4k | - | 25 days ago | ESM + CommonJS | - |
| @zag-js/hotkeys | 196.3k | - | 11 days ago | ESM + CommonJS | - |
Indexability: Indexed.