scrollbar-library

1.0.19 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i scrollbar-library

Weekly Downloads

1

Version

1.0.19

License

ISC

Unpacked Size

16.3 kB

Total Files

10

Last publish

Collaborators

  • archana0405