@cfxjs/react-ui
Version:
Modern and minimalist React UI library.
23 lines (22 loc) • 1.07 kB
TypeScript
import React from 'react';
import { InputVariantTypes } from '../utils/prop-types';
import { TableProps as RcTableProps } from '@cfxjs/rc-table/es/Table';
export type { ColumnType, ColumnsType, CellType } from '@cfxjs/rc-table/es/interface';
export declare type TableVariants = InputVariantTypes;
export interface Props<RecordType> extends RcTableProps<RecordType> {
variant?: TableVariants;
}
declare const defaultProps: {
variant: "solid" | "line";
};
declare type NativeAttrs<RecordType> = Omit<React.TableHTMLAttributes<any>, keyof Props<RecordType>>;
export declare type TableProps<RecordType> = Props<RecordType> & typeof defaultProps & NativeAttrs<RecordType>;
declare function Table<RecordType>({ variant, children, className, ...props }: TableProps<RecordType>): JSX.Element;
declare namespace Table {
var defaultProps: {
variant: "solid" | "line";
};
var Column: typeof import("@cfxjs/rc-table/lib/sugar/Column").default;
var ColumnGroup: typeof import("@cfxjs/rc-table/lib/sugar/ColumnGroup").default;
}
export default Table;