0.1.11 • Published 3 years ago

react-table-scrollbar v0.1.11

Weekly downloads
273
License
MIT
Repository
github
Last release
3 years ago

react-table-scrollbar

React fixed table header position and auto scrollbar.

demo

Getting Started

react-table-scrollbar

  • Install the package dependency:
      $ npm install --save react-table-scrollbar
  • Import the TableScrollbar component and use it to enclose your table:
      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:
      <TableScrollbar rows={5}>
        <table>
          ...
        </table>
      </TableScrollbar>
  • ... Or by passing a height prop in any valid CSS unit:
      <TableScrollbar height="200px">
        <table>
          ...
        </table>
      </TableScrollbar>
  • By default, the table will fill up the container's height
      <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

0.1.10

3 years ago

0.1.11

3 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago