UNPKG

@vectara/vectara-ui

Version:

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

20 lines (19 loc) 643 B
import { ReactElement } from "react"; import { ButtonColor } from "../button/types"; 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; color?: ButtonColor; icon?: ReactElement | null; }; 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;