@table-utils/jsx-table
Version:
A simple, accessible table view.
21 lines (20 loc) • 856 B
TypeScript
import * as React from 'react';
import { TableBody } from './TableBody';
import { TableHead } from './TableHead';
import { TableRow } from './TableRow';
import { TableCell } from './TableCell';
import { TableHeadCell } from './TableHeadCell';
import { TableHeadRow } from './TableHeadRow';
import { TableFoot } from './TableFoot';
import type { As } from '../typings/As';
export declare type TableProps<E extends HTMLElement = HTMLTableElement, P = any> = React.TableHTMLAttributes<E> & As<P> & Pick<Required<React.TableHTMLAttributes<E>>, 'children'>;
export declare type Statics = {
Body: typeof TableBody;
Head: typeof TableHead;
HeadRow: typeof TableHeadRow;
HeadCell: typeof TableHeadCell;
Row: typeof TableRow;
Cell: typeof TableCell;
Foot: typeof TableFoot;
};
export declare const Table: React.FC<TableProps> & Statics;