UNPKG

tw-table

Version:

table designed with tailwind and tanstack-table.

11 lines (10 loc) 509 B
import React from 'react'; import { HeaderGroup } from '@tanstack/react-table'; declare type Props<TData> = { headerGroup: HeaderGroup<TData>; enableMultiRowSelection?: boolean | null; isAllRowsSelected?: boolean | null; toggleAllRowsSelectedHandler?: (event: unknown) => void; }; declare const TableHead: <TData extends object>({ headerGroup, enableMultiRowSelection, isAllRowsSelected, toggleAllRowsSelectedHandler, }: Props<TData>) => React.JSX.Element; export default TableHead;