Gathering detailed insights and metrics for hjkcai-rc-scrollbars
Gathering detailed insights and metrics for hjkcai-rc-scrollbars
Gathering detailed insights and metrics for hjkcai-rc-scrollbars
Gathering detailed insights and metrics for hjkcai-rc-scrollbars
npm install hjkcai-rc-scrollbars
Typescript
Module System
Node Version
NPM Version
68.7
Supply Chain
92.7
Quality
79.9
Maintenance
100
Vulnerability
100
License
JavaScript (70.02%)
TypeScript (29.98%)
Total Downloads
677
Last Day
4
Last Week
17
Last Month
196
Last Year
539
MIT License
95 Commits
1 Branches
1 Contributors
Updated on May 19, 2025
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
hjkcai-rc-scrollbars@2.0.0
Unpacked Size
287.81 kB
Size
147.76 kB
File Count
41
NPM Version
10.8.2
Node Version
18.20.5
Published on
May 19, 2025
Cumulative downloads
Total Downloads
Last Day
33.3%
4
Compared to previous day
Last Week
-82.7%
17
Compared to previous week
Last Month
493.9%
196
Compared to previous month
Last Year
290.6%
539
Compared to previous year
3
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.
No security vulnerabilities found.