UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

16 lines (15 loc) 481 B
import ScalarDict from './ScalarDict.js'; import React from 'react'; import { ForegroundColor } from 'chalk'; export type TableColumn<T> = { [column in keyof T]: { header?: string; color?: ForegroundColor | 'dim'; }; }; export interface TableProps<T extends ScalarDict> { rows: T[]; columns: TableColumn<T>; } declare function Table<T extends ScalarDict>({ rows, columns: columnsConfiguration }: TableProps<T>): React.JSX.Element; export { Table };