UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

16 lines (15 loc) • 532 B
'use client'; import * as React from 'react'; /** * Provides the layout information of the surrounding tree to `TreeItemLoader`. * The loading UI renders outside of the tree items, so the depth and height * cannot be derived from an item. * * @ignore - internal context. */ export const TreeItemLoaderContext = /*#__PURE__*/React.createContext({ itemDepth: 0, itemHeight: null, isCheckboxSelectionEnabled: false }); if (process.env.NODE_ENV !== "production") TreeItemLoaderContext.displayName = "TreeItemLoaderContext";