@amaui/ui-react
Version:
UI for React
28 lines (27 loc) • 845 B
TypeScript
import React from 'react';
import { TLineAlign, TLineJustify } from '../Line/Line';
import { IBaseElement, ITonal, IColor, ISize, IPropsAny } from '../types';
export type ITableCellSort = 'asc' | 'desc';
export interface ITableCell extends IBaseElement {
tonal?: ITonal;
color?: IColor;
size?: ISize;
sort?: boolean;
sortedByDefault?: ITableCellSort;
sortedBy?: ITableCellSort;
onSort?: (value: ITableCellSort) => any;
position?: 'head' | 'body';
align?: TLineAlign;
justify?: TLineJustify;
noWeight?: boolean;
sticky?: boolean;
stickyPosition?: 'left' | 'right';
stickyOffset?: number;
disabled?: boolean;
IconArrow?: any;
IconButtonSortProps?: any;
TypeProps?: any;
DividerProps?: IPropsAny;
}
declare const TableCell: React.FC<ITableCell>;
export default TableCell;