amotify
Version:
UI Component for React,NextJS,esbuild
25 lines (24 loc) • 1.05 kB
TypeScript
/// <reference types="react" />
import { StyleProps } from '../../@declares';
import { TableTypes } from '.';
declare namespace TableParts {
type Table = StyleProps.BasicElement & TableTypes.customTableHTMLAttributes<HTMLTableElement>;
type TableHead = StyleProps.BasicElement & TableTypes.customTableHTMLAttributes<HTMLTableSectionElement>;
type TableBody = StyleProps.BasicElement & TableTypes.customTableHTMLAttributes<HTMLTableSectionElement>;
type TR = StyleProps.BasicElement & React.HTMLAttributes<HTMLTableRowElement>;
type TableCell = StyleProps.BasicElement & React.ThHTMLAttributes<HTMLTableCellElement>;
type Cell = TableCell & {
type?: 'th' | 'td';
};
type Methods = {
Table: React.FC<Table>;
Head: React.FC<TableHead>;
Body: React.FC<TableBody>;
Row: React.FC<TR>;
TH: React.FC<TableCell>;
TD: React.FC<TableCell>;
RightIndicator: Cell;
};
}
declare const TableParts: TableParts.Methods;
export { TableParts, TableParts as default };