React component for creating custom overlay-scrollbars with native scrolling mechanism for web applications (when needed)
Important:
It only create the custom scrollbars (bind events, etc) when the OS does not supports “overlay-scrollbars” natively, otherwise leave the scrollbars intact
IE9+ support
Uses gemini-scrollbar under the hood, check the gemini-scrollbar repo for more information.
Install
NPM
npm install react-gemini-scrollbar --save
Usage
JSX
var GeminiScrollbar = require('react-gemini-scrollbar');<GeminiScrollbar> <h1>The content.</h1> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p></GeminiScrollbar>
If you want to specify different scrollbar styles for your components, one
alternative is to pass a className to the component. Then you can use that
className as a namespace when writing your css. Ex: