UNPKG

@atlaskit/table-tree

Version:

A table tree is an expandable table for showing nested hierarchies of information.

15 lines (14 loc) • 454 B
import React, { type ReactElement } from 'react'; import { type RowProps } from '../row'; interface ItemsProps<Item> { depth?: number; items?: Item[] | null; loadingLabel?: string; render: (arg: Item & { children?: Item[]; }) => ReactElement<RowProps<Item>> | null; } declare function Items<Item extends { id: string; }>({ depth, items, loadingLabel, render, }: ItemsProps<Item>): React.JSX.Element; export default Items;