# scrollbar-cxd

> A scrollbar React Component that divide the scrollbar for whole page into some small pages

Latest version **1.0.1** (published 2018-06-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install scrollbar-cxd
pnpm add scrollbar-cxd
yarn add scrollbar-cxd
bun add scrollbar-cxd
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-06-21 |
| First published | 2018-06-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 36 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xiaodong chen |
| Maintainers | mooner00 |
| Keywords | scrollbar, react, component |

## Links

- npm: https://www.npmjs.com/package/scrollbar-cxd
- npm.io page: https://npm.io/package/scrollbar-cxd

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-06-21

## README

# Scrollbar-React-Component
Scrollbar-track is a React Componet can help you create a scrollbar which can track specific class, or just divide the scrollbar into some small ones. Scrollbar have a 'onPageChange' event to help watch the page change. User can custom the function when scrollbar rich the end.


## Before Use: 
> import {Scrollbar, Thumb} from './scrollbar/ScrollbarApp' <br>
> import styles from './scrollbar.css' <br>
> style-loader and css-loadedr are necessary. <br>
> jQuery is necessary<br>

## How to Use:  
> ```<Scrollbar/>``` or 
```
<Scrollbar>
  <Thumb/>
  <Thumb>
<Scrollbar>
```

## property for Scrollbar:
#### 1.  pageNum: Number.  
> Defined how many thumbs on Scrollbar. <br> eg: ```<Scrollbar pageNum = "4"/>``` 
#### 2.  traceClass: String. 
> Define the class name the thumb should bind.<br> eg: ```<Scrollbar traceClass = ".pages"/>``` 
#### 3. onPageChange: function. 
>Define the function call when thumb rich the top or end. <br>eg: ```<Scrollbar pageNum = "4" onPageChange= { function(){console.log("Page Change")} }/>```
#### 4. offTop/ offBottom: Number 
> Define the height which thumb off top/Bottom. Alert: The unit for the value is "vh". <br>eg:```<Scrollbar offTop = "2" offBottom = "4">```
#### 5. thumbHeight : Number 
> Define the distance between thumbs. Alert: The unit for the value is "vh". <br>eg: ```<Scrollbar thumbHeight = "5">```
  
## Property for Thumb
#### 1. scale: Number 
> Define the height scale for single thumb. <br>eg. ```<Thumb scale = "2"/ >```
  
## Dependency: 
```
"devDependencies": {
    "babel-core": "^6.26.3",
    "babel-loader": "^7.1.4",
    "babel-preset-env": "^1.7.0",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-react": "^6.24.1",
    "css-loader": "^0.28.11",
    "jquery": "^3.3.1",
    "react": "^16.4.1",
    "react-dom": "^16.4.1",
    "style-loader": "^0.21.0",
    "webpack": "^4.12.0",
    "webpack-command": "^0.2.1"
  }
  ```

---
_Source: https://npm.io/package/scrollbar-cxd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
