markSteph / react-table-example

React-Table v7 with Typescript and Material-UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Table Example

Demo of React Table V7 using TypeScript as well as Material UI

This example uses:

  • useGroupBy to enable header groups
  • useFilters for per-column filters. Note that filters are displayed in a separate filter dropdown rather than being embedded in each column header.
  • useSortBy for column sorting
  • useExpanded to allow expansion of grouped columns
  • useFlexLayout for a scalable full width table
  • usePagination for pagination
  • useResizeColumns for resizable columns
  • useRowSelect for row selection

Other features:

  • Demonstrates hiding columns.
  • use react-json-view to optionally display the table instance for better exploration.
  • use useLocalStorage and useDebounce, both from https://usehooks.com to persist table settings.

Inspiration

Several parts of this demo are pulled from examples that are available at https://github.com/tannerlinsley/react-table/tree/master/examples that are copyright Tanner Linsley

About

React-Table v7 with Typescript and Material-UI

License:MIT License


Languages

Language:TypeScript 92.7%Language:JavaScript 4.0%Language:HTML 3.1%Language:Shell 0.1%