quantumai-design-system
Version:
퀀텀에이아이의 디자인 시스템
23 lines (22 loc) • 862 B
TypeScript
import React from 'react';
import { HeightType, MarginType, WidthType } from '../../../../types/styleType';
type ColumnItem = {
key?: string;
label: string;
height?: string | number;
width?: string | number;
minWidth?: string | number;
maxWidth?: string | number;
disabled?: boolean;
columns?: ColumnItem[];
};
type Columns = ColumnItem[];
export interface TableDataProps<T> extends React.HTMLAttributes<HTMLDivElement>, WidthType, HeightType, MarginType {
columns: Columns;
rows: T[];
selected?: boolean;
selectedKey?: keyof T;
onSelectedData?: (selectedData: T[]) => void;
}
declare const TableData: <T extends Record<string, any>>({ children, columns, rows, selected, selectedKey, onSelectedData, ...props }: TableDataProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
export default TableData;