UNPKG

@frui.ts/dataviews

Version:

View components for data display

13 lines (12 loc) 719 B
import React from "react"; import type { PropsWithColumns } from "../dataTypes"; export interface DataRowProps<TItem, TContext, TWrapper extends React.ElementType, TItemCell extends React.ElementType> extends PropsWithColumns<TItem, TContext> { item: TItem; wrapperType?: TWrapper; wrapperProps?: React.ComponentPropsWithoutRef<TWrapper>; itemCellType?: TItemCell; itemCellProps?: React.ComponentPropsWithoutRef<TItemCell>; } declare function repeaterRow<TItem, TContext, TWrapper extends React.ElementType, TItemCell extends React.ElementType>(props: DataRowProps<TItem, TContext, TWrapper, TItemCell>): React.JSX.Element; declare const RepeaterRow: typeof repeaterRow; export default RepeaterRow;