UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

20 lines 691 B
export type TreeViewItemId = string; export type TreeViewDefaultItemModelProperties = { id: string; label: string; children?: TreeViewDefaultItemModelProperties[]; }; /** * @deprecated Use `TreeViewDefaultItemModelProperties` instead, or define your own item model interface. */ export type TreeViewBaseItem<R extends {} = TreeViewDefaultItemModelProperties> = R & { children?: TreeViewBaseItem<R>[]; }; export type TreeViewValidItem<R extends {}> = { children?: R[]; }; export type TreeViewItemsReorderingAction = 'reorder-above' | 'reorder-below' | 'make-child' | 'move-to-parent'; export interface TreeViewSelectionPropagation { descendants?: boolean; parents?: boolean; }