# react-table-scrollbar

> React fixed table header position and auto scrollbar

Latest version **0.1.11** (published 2021-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-table-scrollbar
pnpm add react-table-scrollbar
yarn add react-table-scrollbar
bun add react-table-scrollbar
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.11 |
| Published | 2021-05-07 |
| First published | 2019-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 99.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Olivier Elshocht |
| Maintainers | oelshocht |
| Keywords | react, table, react-table, fixed-header, scrollbar |

## Links

- npm: https://www.npmjs.com/package/react-table-scrollbar
- Repository: https://github.com/oelshocht/react-table-scrollbar
- Homepage: https://github.com/oelshocht/react-table-scrollbar#readme
- Issues: https://github.com/oelshocht/react-table-scrollbar/issues
- npm.io page: https://npm.io/package/react-table-scrollbar

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.1.11 (latest) — 2021-05-07
- 0.1.9 — 2020-09-24
- 0.1.8 — 2019-12-11
- 0.1.5 — 2019-11-20
- 0.1.4 — 2019-11-20
- 0.1.3 — 2019-11-18
- 0.1.1 — 2019-11-18
- 0.1.0 — 2019-11-18

## 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';
      ...
      <TableScrollbar>
        <table>
          ...
        </table>
      </TableScrollbar>
    ```
## Sizing the table
* You can specify the table height as a number of body rows:
    ```javascript
      <TableScrollbar rows={5}>
        <table>
          ...
        </table>
      </TableScrollbar>
    ```
* ... Or by passing a height prop in any valid CSS unit:
    ```javascript
      <TableScrollbar height="200px">
        <table>
          ...
        </table>
      </TableScrollbar>
    ```
* By default, the table will fill up the container's height
    ```javascript
      <div style={{height: "30vh"}}>
        <TableScrollbar>
          <table>
            ...
          </table>
        </TableScrollbar>
      </div>
    ```
# License
MIT

# Contribute
To submit issues and pull requests:
https://github.com/oelshocht/react-table-scrollbar.git

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