UNPKG

material-react-table

Version:

A fully featured Material UI V6 implementation of TanStack React Table V8, written from the ground up in TypeScript.

13 lines (11 loc) 421 B
import { type MRT_RowData, type MRT_TableInstance, type MRT_TableOptions, } from '../types'; import { useMRT_TableInstance } from './useMRT_TableInstance'; import { useMRT_TableOptions } from './useMRT_TableOptions'; export const useMaterialReactTable = <TData extends MRT_RowData>( tableOptions: MRT_TableOptions<TData>, ): MRT_TableInstance<TData> => useMRT_TableInstance(useMRT_TableOptions(tableOptions));