@mui/x-tree-view
Version:
The community edition of the MUI X Tree View components.
28 lines (24 loc) • 790 B
JavaScript
'use client';
import * as React from 'react';
/**
* Slots stored in the style context.
* The loading slots only exist on the components with a loading state,
* so they are not part of the public `TreeViewSlots` interface.
*/
/**
* Slot props stored in the style context.
* The loading slot props only exist on the components with a loading state,
* so they are not part of the public `TreeViewSlotProps` interface.
*/
/**
* @ignore - internal component.
*/
export const TreeViewStyleContext = /*#__PURE__*/React.createContext({
classes: {},
slots: {},
slotProps: {}
});
if (process.env.NODE_ENV !== "production") TreeViewStyleContext.displayName = "TreeViewStyleContext";
export const useTreeViewStyleContext = () => {
return React.useContext(TreeViewStyleContext);
};