@cbinsights/fds
Version:
Form: A design system by CB Insights
25 lines (24 loc) • 820 B
TypeScript
import React from 'react';
export interface TableProps {
children?: React.ReactNode;
shrinkLastColumn?: boolean;
}
export declare const Table: (props: TableProps) => JSX.Element;
export interface TableCellProps {
children?: React.ReactNode;
copy?: boolean;
isCSS?: boolean;
}
export declare const TableCell: ({ children, isCSS, copy, ...props }: TableCellProps) => JSX.Element;
export interface TableHeadLayoutProps {
headers?: Array<string | number>;
}
export interface TableLayoutProps {
rows?: Array<Array<React.ReactNode | object>>;
headers?: Array<string | number>;
copy?: boolean;
shrinkLastColumn?: boolean;
isCSS?: boolean;
}
export declare const TableLayout: ({ headers, shrinkLastColumn, rows, isCSS, copy, }: TableLayoutProps) => JSX.Element;
export default Table;