@mui/x-tree-view
Version:
The community edition of the MUI X Tree View components.
17 lines • 585 B
TypeScript
export type TreeViewItemId = string;
export type TreeViewDefaultItemModelProperties = {
id: string;
label: string;
children?: TreeViewDefaultItemModelProperties[];
};
export type TreeViewBaseItem<R extends object = TreeViewDefaultItemModelProperties> = R & {
children?: TreeViewBaseItem<R>[];
};
export type TreeViewValidItem<R extends object> = {
children?: R[];
};
export type TreeViewItemsReorderingAction = 'reorder-above' | 'reorder-below' | 'make-child' | 'move-to-parent';
export interface TreeViewSelectionPropagation {
descendants?: boolean;
parents?: boolean;
}