UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

19 lines (18 loc) 971 B
import React from "react"; import { TableExpandRow as CarbonTableExpandRow } from "@carbon/react"; type CarbonTableExpandRowProps = React.ComponentProps<typeof CarbonTableExpandRow>; export interface TableExpandRowProps extends Omit<CarbonTableExpandRowProps, "children" | "ref" | "ariaLabel" | "expandIconDescription" | "aria-label">, React.HTMLAttributes<HTMLTableRowElement> { /** * This text is displayed as tooltip for the button that toggles the expanded/collapsed state. */ togglerText: string; /** * Display this row with the styles from a zebra style-enabled table. */ useZebraStyle?: boolean; } /** * Table row that is suffixed by a cell containing a button to expand/collapse this row. */ export declare function TableExpandRow({ togglerText, isExpanded, isSelected, useZebraStyle, onExpand, className, children, ...otherCarbonTableExpandRowProps }: TableExpandRowProps): React.JSX.Element; export default TableExpandRow;