UNPKG

@hmlr/govuk-react-components-library

Version:

These are common component use for React applications based on GDS and govuk-frontend

22 lines (21 loc) 557 B
import { HTMLAttributes } from "react"; export interface TableItem { className?: string; format?: string; children: React.ReactNode; reactListKey?: string | number; [key: string]: unknown; } export interface TableRow { cells: TableItem[]; reactListKey?: string | number; } export interface TableProps extends HTMLAttributes<HTMLTableElement> { caption?: string; captionClassName?: string; firstCellIsHeader?: boolean; className?: string; head?: TableItem[]; rows?: TableRow[]; footer?: TableItem[]; }