UNPKG

@atlaskit/tree

Version:

A React Component for displaying expandable and sortable tree hierarchies

31 lines (30 loc) 440 B
import { type TreeData } from '../src/types'; export const treeInitiallyClosed: TreeData = { rootId: 'tree', items: { tree: { id: 'tree', children: ['a', 'b'], }, a: { id: 'a', isExpanded: false, hasChildren: true, children: ['c'], }, b: { id: 'b', isExpanded: false, hasChildren: true, children: ['d'], }, c: { id: 'c', children: [], }, d: { id: 'd', children: [], }, }, };