https://github.com/oelshocht/react-table-scrollbar
React fixed table header position and auto scrollbar
https://github.com/oelshocht/react-table-scrollbar
auto-scrollbar fixed-header fixed-header-table react table
Last synced: 9 months ago
JSON representation
React fixed table header position and auto scrollbar
- Host: GitHub
- URL: https://github.com/oelshocht/react-table-scrollbar
- Owner: oelshocht
- License: mit
- Created: 2019-11-14T21:38:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T18:03:13.000Z (over 3 years ago)
- Last Synced: 2025-08-31T14:15:24.733Z (10 months ago)
- Topics: auto-scrollbar, fixed-header, fixed-header-table, react, table
- Language: JavaScript
- Size: 2.1 MB
- Stars: 9
- Watchers: 1
- Forks: 8
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-table-scrollbar
React fixed table header position and auto scrollbar.

# Getting Started
[](https://npmjs.org/package/react-table-scrollbar)
* Install the package dependency:
```shell
$ npm install --save react-table-scrollbar
```
* Import the `TableScrollbar` component and use it to enclose your table:
```javascript
import TableScrollbar from 'react-table-scrollbar';
...
...
```
## Sizing the table
* You can specify the table height as a number of body rows:
```javascript
...
```
* ... Or by passing a height prop in any valid CSS unit:
```javascript
...
```
* By default, the table will fill up the container's height
```javascript
...
```
# License
MIT
# Contribute
To submit issues and pull requests:
https://github.com/oelshocht/react-table-scrollbar.git