@re-flex/ui
Version:
Re-Flex ui library
21 lines (20 loc) • 665 B
TypeScript
import React, { HTMLAttributes } from "react";
import TableBody from "./TableBody";
import TableBodyCell from "./TableBodyCell";
import TableFooter from "./TableFooter";
import TableHead from "./TableHead";
import TableHeadCell from "./TableHeadCell";
import TableRow from "./TableRow";
declare type TableChild = {
THead: typeof TableHead;
Th: typeof TableHeadCell;
TBody: typeof TableBody;
Tr: typeof TableRow;
Td: typeof TableBodyCell;
TFoot: typeof TableFooter;
};
declare type Props = HTMLAttributes<HTMLTableElement> & {
variant?: "bordered" | "splitted";
};
declare const Table: React.FC<Props> & TableChild;
export default Table;