@vectara/vectara-ui
Version:
Vectara's design system, codified as a React and Sass component library
16 lines (15 loc) • 501 B
TypeScript
import { Row } from "./types";
export type Action<T> = {
label: string;
isDisabled?: (row: T) => boolean;
onClick?: (row: T) => void;
href?: (row: T) => string | undefined;
testId?: string;
};
export type Props<T> = {
row: any;
actions: Action<T>[];
onToggle: (isSelected: boolean) => void;
testId?: string;
};
export declare const VuiTableRowActions: <T extends Row>({ row, actions, onToggle, testId }: Props<T>) => import("react/jsx-runtime").JSX.Element | null;