1.0.4 • Published 5 years ago
@matrix-scrollbar/react v1.0.4
@matrix-scrollbar/react 🔭👩🚀
Installation
This module is distributed via npm which is bundled with node and should be installed as one of your project's dependencies
:
npm install --save @matrix-scrollbar/react
This package also depends on
React
. Please make sure you have it installed as well.
Example
import { MatrixScrollbar } from "@MatrixScrollbar/react";
function List() {
return (
<MatrixScrollbar>
<ul>
<li>1</li>
<li>...</li>
...
</ul>
</MatrixScrollbar>
);
}
Props/Settings
key | default | description |
---|---|---|
autoHideThumb | true | boolean |
minThumbHeight | 30 | number |
viewportId | optional | string, if the first element is not the viewport |
totalHeight | optional | number: rare cases to help with the calculation |
className | optional | string: setting class to the most outer element |
Styling
class | active (appended) |
---|---|
matrixScrollbar__thumb | matrixScrollbar__thumb-active |
matrixScrollbar__rail | matrixScrollbar__rail-active |
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.0.17
5 years ago
0.0.16
5 years ago
0.0.15
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago