react-custom-scrollbar
Custom vertical scrollbar
How to install
npm i react-custom-scrollbar --save
How to import
For TypeScript usage there is a index.d.ts in node_modules folder
;
or
var CustomScrollBar = ;
Also use css in a lib folder in:
node_modules/react-video-seek-slider/lib/react-custom-scrollbar.css
How to use
<CustomScrollBar = = = = = ="inner-handle" = > //Inner components here... </CustomScrollBar>
Specification
allowOuterScroll
: (boolean, required)heightRelativeToParent
: (string, required)onScroll
: (Function, required)addScrolledClass
: (boolean, required)freezePosition
: (boolean, required)handleClass
: (string, required)minScrollHandleHeight
: (number, required)
For development
just use:
- $ yarn or $ npm i
- $ gulp
open your browser http://localhost:3000
For Build
$ ./production