UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

18 lines (17 loc) 820 B
import type { PropsFor } from "../../types.js"; export type TableRowProps = PropsFor<"tr", { /** Expandable Content */ content?: React.ReactNode; /** Render `content` even when the row is collapsed. default `false`) */ eager?: boolean; /** Override for open state */ open?: boolean; /** Callback for when expand arrow is clicked */ onOpenChange?: () => void; /** if passed, sets cursor to pointer and selectable style */ onClick?: (event: React.MouseEvent<HTMLTableRowElement> | React.KeyboardEvent<HTMLTableRowElement>) => void; /** Only expand when the arrow cell is clicked */ limitExpandClick?: boolean; }>; declare const TableRow: import("react").ForwardRefExoticComponent<TableRowProps & import("react").RefAttributes<HTMLTableRowElement>>; export default TableRow;