@vectara/vectara-ui
Version:
Vectara's design system, codified as a React and Sass component library
24 lines (23 loc) • 1.06 kB
TypeScript
import React from "react";
import { Column } from "../table/types";
import { SpansRow } from "./types";
type Props<T extends SpansRow> = {
idField: keyof T | ((row: T) => string);
parentField: keyof T | ((row: T) => string | null);
columns: Column<T>[];
rows: T[];
expandedIds: Set<string>;
onExpandedIdsChange: (ids: Set<string>) => void;
onExpand?: (row: T) => void | Promise<void>;
isLoadingChildren?: (row: T) => boolean;
isLoading?: boolean;
content?: React.ReactNode;
className?: string;
rowDecorator?: (row: T, depth: number) => React.HTMLAttributes<HTMLTableRowElement>;
indentSize?: number;
isHeaderSticky?: boolean;
fluid?: boolean;
"data-testid"?: string;
};
export declare const VuiSpans: <T extends SpansRow>({ idField, parentField, columns, rows, expandedIds, onExpandedIdsChange, onExpand, isLoadingChildren, isLoading, content, className, rowDecorator, indentSize, isHeaderSticky, fluid, "data-testid": dataTestId }: Props<T>) => import("react/jsx-runtime").JSX.Element;
export {};