
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
react-scrollbars-custom
Advanced tools
IMPORTANT: default component styles uses Flexible Box Layout for proper scrollbars display.
But you can customize it with help pf inline or linked styles as you wish (see docs).
npm i --save react-scrollbars-custom
Minimal configuration
class App extends Component
{
render() {
return (
<Scrollbar style={ {width: '100%', height: '100%', minHeight: 300} } >
<p>Hello world!</p>
</Scrollbar>
);
}
}
All properties and methods are in the API Documentation
Run the example, it will install dependencies, build current component version and run local web-server listening localhost:3000
(browser window will open automatically)
# install dependencies if you haven't yet
npm install
npm run examples
# install dependencies if you haven't yet
npm install
npm run test
# install dependencies if you haven't yet
npm install
npm run test:coverage
Big thanks to @malte-wessel with his react-custom-scrollbars which I used before writing this component.
So don't be wondered that repos and code look similar in some places, his package used as ethalon. And for the users convenience i've tried to make API's seamless as much as it possible.
FAQs
The best React custom scrollbars component
The npm package react-scrollbars-custom receives a total of 58,188 weekly downloads. As such, react-scrollbars-custom popularity was classified as popular.
We found that react-scrollbars-custom 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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.