@vectara/vectara-ui
Version:
Vectara's design system, codified as a React and Sass component library
16 lines (15 loc) • 449 B
TypeScript
export type Row = Record<string, any>;
export type Header = {
isSortable?: boolean;
render?: () => React.ReactNode;
};
export type Column<T> = {
name: string;
width?: string;
header: Header;
render?: (row: T, rowIndex: number) => React.ReactNode;
className?: string;
testId?: string | ((row: T) => string);
truncate?: boolean;
};
export type OnSort = (column: string, direction: "asc" | "desc" | "none") => void;