UNPKG

@vectara/vectara-ui

Version:

Vectara's design system, codified as a React and Sass component library

15 lines (14 loc) 416 B
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); }; export type OnSort = (column: string, direction: "asc" | "desc") => void;