You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,4 +46,8 @@ All properties and methods are in the [API Documentation](https://github.com/xob
46
46
Run the example, it will install dependencies, build current component version and run local web-server listening `localhost:3000` (browser window will open automatically)
47
47
```bash
48
48
npm run examples
49
-
```
49
+
```
50
+
51
+
## Credits
52
+
Big thanks to @malte-wessel with his [react-custom-scrollbars](https://github.com/malte-wessel/react-custom-scrollbars) which I used before writing this component.
53
+
So don't be wondered that repos and code are look the same in some places, his package used as ethalon. And for the users convenience i've tried to make API's seamless as much as it possible.
*`thumbSizeMin`: _(number)_ Minimal size of thumb in pixels _(default: 30)_
8
8
*`scrollDetectionThreshold`: _(number)_ Scroll process check interval in milliseconds _(default: 100)_
9
+
*`permanentScrollbars`: _(boolean)_ Display both, vertical and horizontal scrollbars permanently, in spite of scrolling possibility _(default: false)_
10
+
*`permanentScrollbarVertical`: _(boolean)_ Display vertical scrollbar permanently, in spite of scrolling possibility _(default: false)_
11
+
*`permanentScrollbarHorizontal`: _(boolean)_ Display horizontal scrollbar permanently, in spite of scrolling possibility _(default: false)_
12
+
*`contentSizeTrack`: _(boolean)_ Automatically check content's sizes to actualize the scrollbars. Useful when dom is changed not only by react. _(default: false)_
13
+
*`contentSizeTrackInterval`: _(number)_ Interval between content's size check, in milliseconds _(default: 200)_
9
14
***Rendering**
10
15
*`renderWrapper`: _(function)_ The element that wraps the content in order to hide browser's scrollbars
11
16
*`renderContent`: _(function)_ The element where content will be rendered
0 commit comments