UNPKG

amotify

Version:

UI Component for React,NextJS,esbuild

25 lines (24 loc) 1.04 kB
/// <reference types="react" /> import { StyleTags } from '../../@declares'; import { TableTypes } from '.'; declare namespace TableParts { type Table = StyleTags.BasicElement & TableTypes.customTableHTMLAttributes<HTMLTableElement>; type TableHead = StyleTags.BasicElement & TableTypes.customTableHTMLAttributes<HTMLTableSectionElement>; type TableBody = StyleTags.BasicElement & TableTypes.customTableHTMLAttributes<HTMLTableSectionElement>; type TR = StyleTags.BasicElement & React.HTMLAttributes<HTMLTableRowElement>; type TableCell = StyleTags.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 };