
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
overlayscrollbars-react
Advanced tools
npm install overlayscrollbars-react
OverlayScrollbars for React has the following peer dependencies:
npm install overlayscrollbars
npm install react
npm install @types/overlayscrollbars
Since this wrapper is written in TypeScript it comes with its generated typings.
Check out the recommended tsconfig.json options.
You have to import the OverlayScrollbars.css by yourself.
The component doesn't do it for you as the styles are global styles!
There are different ways to achieve this, in React the most simple way for me was to add this line in the index file:
import 'overlayscrollbars/css/OverlayScrollbars.css';
Simply import the component into your file(s):
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react';
After the import you can use it in JSX:
<OverlayScrollbarsComponent>
example content
</OverlayScrollbarsComponent>
Two properties are accepted: options and extensions.
options property accepts a object and can be changed at any point in time, and the plugin will adapt.extensions property accepts a string, string array or object and is only taken into account if the component gets mounted.<OverlayScrollbarsComponent
options={{ scrollbars: { autoHide: 'scroll' } }}
extensions={['extensionA', 'extensionB']}
>
</OverlayScrollbarsComponent>
You can read more about the options object here, extensions are documented here and here.
If you get the component reference, it provides two methods: osInstance() and osTarget().
osInstance() method returns the OverlayScrollbars instance of the component, or null if the instance isn't initialized yet or already destroyed.osTarget() method returns the native html element to which the plugin was initialized, or null if the the component isn't mounted yet or already unmounted.In case you need a example app for reference, you can use the example app in this repo(example folder):
If you wanna build the example app, run these commands:
npm run setup
npm run build
npm run example
MIT
FAQs
OverlayScrollbars for React.
The npm package overlayscrollbars-react receives a total of 70,654 weekly downloads. As such, overlayscrollbars-react popularity was classified as popular.
We found that overlayscrollbars-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.