An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# react-table-scrollbar
React fixed table header position and auto scrollbar.

![demo](./demo.gif)

# Getting Started
[![react-table-scrollbar](https://nodei.co/npm/react-table-scrollbar.png)](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