@project44-manifest/react
Version:
Manifest Design System react components
40 lines • 1.01 kB
TypeScript
/// <reference types="react" />
import type { CSS } from '@project44-manifest/react-styles';
declare type Align = 'center' | 'justify' | 'left' | 'right';
export declare type TableColumnElement = 'th';
export interface TableColumnProps {
/**
* Theme aware style object
*/
css?: CSS;
/**
* Text alignment of the table column.
*
* @default 'left'
*/
align?: Align;
/**
* The content of the column.
*/
children?: React.ReactNode;
/**
* Whether the current column is actively sorted.
*/
isActive?: boolean;
/**
* Whether the column supports sorting.
*/
isSortable?: boolean;
/**
* The sort direction of the column.
*
* @default 'asc'
*/
sortDirection?: 'asc' | 'desc';
/**
* Callback executed on column click, used for column sort only.
*/
onClick?: (event: React.MouseEvent<HTMLTableCellElement>) => void;
}
export {};
//# sourceMappingURL=TableColumn.types.d.ts.map