@basictech/cli
Version:
Basic CLI for creating & managing your projects
24 lines • 734 B
TypeScript
export interface TableColumn {
title: string;
width: number;
key: string;
}
export interface TableRow {
[key: string]: string;
}
export interface TableProps {
columns: TableColumn[];
rows: TableRow[];
onSelect?: (row: TableRow, index: number) => void;
onCopy?: (row: TableRow, index: number) => void;
onOpen?: (row: TableRow, index: number) => void;
onNew?: () => void;
onExit?: () => void;
helpText?: {
copyAction: string;
openAction: string;
newAction?: string;
};
}
export declare function Table({ columns, rows, onSelect, onCopy, onOpen, onNew, onExit, helpText }: TableProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Table.d.ts.map