Gathering detailed insights and metrics for rc-scrollbars
Gathering detailed insights and metrics for rc-scrollbars
Gathering detailed insights and metrics for rc-scrollbars
Gathering detailed insights and metrics for rc-scrollbars
npm install rc-scrollbars
Typescript
Module System
Node Version
NPM Version
87.6
Supply Chain
93.6
Quality
74.5
Maintenance
100
Vulnerability
100
License
JavaScript (70.44%)
TypeScript (29.56%)
Total Downloads
1,882,564
Last Day
481
Last Week
16,317
Last Month
72,024
Last Year
704,937
MIT License
154 Stars
90 Commits
14 Forks
4 Watchers
3 Branches
4 Contributors
Updated on Jul 01, 2025
Minified
Minified + Gzipped
Latest Version
1.1.6
Package Id
rc-scrollbars@1.1.6
Unpacked Size
354.65 kB
Size
153.58 kB
File Count
41
NPM Version
8.19.4
Node Version
16.20.0
Published on
Jun 18, 2023
Cumulative downloads
Total Downloads
37
rejuvenated project of react-custom-scrollbars
requestAnimationFrame
for 60fps1npm install rc-scrollbars --save 2 3# OR 4 5yarn add rc-scrollbars
This assumes that you’re using npm package manager with a module bundler like Webpack or Browserify to consume CommonJS modules.
This is the minimal configuration. Check out the Documentation for advanced usage.
1import { Scrollbars } from 'rc-scrollbars'; 2 3class App extends Component { 4 render() { 5 return ( 6 <Scrollbars style={{ width: 500, height: 300 }}> 7 <p>Some great content...</p> 8 </Scrollbars> 9 ); 10 } 11}
The <Scrollbars>
component is completely customizable. Check out the following code:
1import { Scrollbars } from 'rc-scrollbars'; 2 3class CustomScrollbars extends Component { 4 render() { 5 return ( 6 <Scrollbars 7 onScroll={this.handleScroll} 8 onScrollFrame={this.handleScrollFrame} 9 onScrollStart={this.handleScrollStart} 10 onScrollStop={this.handleScrollStop} 11 onUpdate={this.handleUpdate} 12 renderView={this.renderView} 13 renderTrackHorizontal={this.renderTrackHorizontal} 14 renderTrackVertical={this.renderTrackVertical} 15 renderThumbHorizontal={this.renderThumbHorizontal} 16 renderThumbVertical={this.renderThumbVertical} 17 autoHide 18 autoHideTimeout={1000} 19 autoHideDuration={200} 20 autoHeight 21 autoHeightMin={0} 22 autoHeightMax={200} 23 thumbMinSize={30} 24 universal={true} 25 {...this.props} /> 26 ); 27 } 28}
All properties are documented in the API docs
Run the simple example:
1# Make sure that you've installed the dependencies 2yarn 3# Run tsc of Scrollbars in watch mode and the documentation project in dev env 4yarn dev
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/13 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
52 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-20.9%
481
Compared to previous day
Last Week
-13.1%
16,317
Compared to previous week
Last Month
6.1%
72,024
Compared to previous month
Last Year
56.4%
704,937
Compared to previous year