@appbuckets/react-ui
Version:
Just Another React UI Framework
30 lines (29 loc) • 976 B
TypeScript
import { ShorthandItem } from '@appbuckets/react-ui-core';
import { IconProps } from '../Icon';
import {
UIMutableComponentProps,
AppearanceProps,
FlexboxContentProps,
AppBucketsIcon,
} from '../generic';
import { TableCellContentProps } from './TableCellContent.types';
export interface TableCellProps
extends UIMutableComponentProps<StrictTableCellProps, 'td'> {}
export interface StrictTableCellProps
extends AppearanceProps,
Pick<FlexboxContentProps, 'width'> {
/** Render the Cell as Active */
active?: boolean;
/** Cell Content Shorthand */
content?: ShorthandItem<TableCellContentProps>;
/** Cell Title Shorthand */
header?: ShorthandItem<TableCellContentProps>;
/** Add a Cell Icon */
icon?: AppBucketsIcon<IconProps>;
/** Cell Meta Shorthand */
meta?: ShorthandItem<TableCellContentProps>;
/** Set the Cell as Selectable */
selectable?: boolean;
/** Show all cell content removing ellipsis overflow */
wrapped?: boolean;
}