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
JavaScript (70.49%)
TypeScript (29.51%)
Total Downloads
533
Last Day
46
Last Week
49
Last Month
78
Last Year
409
MIT License
93 Commits
1 Branches
1 Contributors
Updated on May 09, 2025
Minified
Minified + Gzipped
Latest Version
1.1.8
Package Id
hjkcai-rc-scrollbars@1.1.8
Unpacked Size
356.49 kB
Size
155.00 kB
File Count
41
NPM Version
10.8.2
Node Version
18.20.5
Published on
May 09, 2025
Cumulative downloads
Total Downloads
Last Day
1,433.3%
46
Compared to previous day
Last Week
512.5%
49
Compared to previous week
Last Month
13%
78
Compared to previous month
Last Year
229.8%
409
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.