BLUE
PHP 7.4.33
Path:
/var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/react-remove-scroll-bar
Run
Logout
Edit File
Size: 1.68 KB
Close
/var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/react-remove-scroll-bar/README.md
Text
Base64
<h1>react-remove-scroll-bar</h1> [](https://www.npmjs.com/package/react-remove-scroll-bar) [](https://bundlephobia.com/result?p=react-remove-scroll-bar) [](https://www.npmtrends.com/react-remove-scroll-bar) <hr /> > v1+ for React 15, v2+ requires React 16.8+ Removes scroll bar (by setting `overflow: hidden` on body), and preserves the scroll bar "gap". Read - it just makes scroll bar invisible. Does nothing if scroll bar does not consume any space. # Usage ```js import {RemoveScrollBar} from 'react-remove-scroll-bar'; <RemoveScrollBar /> -> no scroll bar ``` ### The Right Border To prevent content jumps __position:fixed__ elements with `right:0` should have additional classname applied. It will just provide a _non-zero_ right, when it needed, to maintain the right "gap". ```js import {zeroRightClassName,fullWidthClassName, noScrollbarsClassName} from 'react-remove-scroll-bar'; // to set `right:0` on an element <div className={zeroRightClassName} /> // to set `width:100%` on an element <div className={fullWidthClassName} /> // to remove scrollbar from an element <div className={noScrollbarsClassName} /> ``` # Size 500b after compression (excluding tslib). # Scroll-Locky All code is a result of a [react-scroll-locky](https://github.com/theKashey/react-scroll-locky) refactoring. # Article There is a medium article about preventing the body scroll - [How to fight the <body> scroll](https://medium.com/@antonkorzunov/how-to-fight-the-body-scroll-2b00267b37ac) # License MIT
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
constants
DIR
-
drwxr-xr-x
2026-04-28 09:11:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dist
DIR
-
drwxr-xr-x
2026-04-28 09:11:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
2.17 KB
lrw-r--r--
2026-04-28 09:11:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1.68 KB
lrw-r--r--
2026-04-28 09:11:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).