scrollbar-library
v1.0.19
Published
scrollbar
Downloads
6
Readme
Scrollbar Library
The Scrollbar Library is a React component designed to create custom scrollbars.
Installation
To use the Scrollbar Library in your React application, install it using npm or yarn:
npm install scrollbar-library
or
yarn add scrollbar-library
Usage
To use the CustomScrollbar component within your React application: import { CustomScrollbar } from 'scrollbar-library';
Props
autoHide (optional) Determines if the scrollbar should automatically hide after a certain timeout.
autoHideTimeout (optional) The timeout duration in milliseconds before the scrollbar hides (default is 2000 milliseconds).
autoHeightMin and autoHeightMax (optional) Control the minimum and maximum height of the scrollbar.
styleName (optional) Apply specific styles to the scrollbar using predefined style classes.
onScroll (optional) A function to handle the scrolling event.
Styling
The provided CSS file (index.css) contains styles for the scrollbar component. Customize these styles as needed to match your application's design.