0.2.2 • Published 4 years ago
react-overlayscrollbars v0.2.2
This project is based on the overlayscrollbar project and is developed.
Demo
import ScrollBar from 'react-overlayscrollbars';
import 'react-overlayscrollbars/es/index.css';
<ScrollBar className="roy_scroll os-theme-dark"
id="roy_id"
style={{background:'red'}}
overflow-behavior={{ x: 'hidden' }}
scrollbars={{ autoHide: 'l' }} >
// ....
</ScrollBar>
.roy_scroll{
height: calc(100% - 0px);
transition: width 0.3s ease-in-out 0s;
}
Download
npm
npm i -S react-overlayscrollbars
Options
Please read the much more detailed documentation.
License
MIT