@dodobrat/react-ui-kit
Version:
Simple React Component Library
14 lines (13 loc) • 1.04 kB
TypeScript
import React from "react";
import { TableProps } from "./Table.types";
import { TableBodyProps, TableFootProps, TableHeadProps, TableRowProps, TableCellProps, TableHCellProps } from "./TableSubComponents.types";
export interface TableComponent extends React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLDivElement>> {
HCell: React.ForwardRefExoticComponent<TableHCellProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
Cell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
Row: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
Head: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableSectionElement>>;
Body: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
Foot: React.ForwardRefExoticComponent<TableFootProps & React.RefAttributes<HTMLTableSectionElement>>;
}
declare const Table: TableComponent;
export default Table;