# Source: https://mui.com/x/api/tree-view/tree-item-provider.md

# TreeItemProvider API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Tree Item customization](/x/react-tree-view/tree-item-customization/)

## Import

```jsx
import { TreeItemProvider } from '@mui/x-tree-view/TreeItemProvider';
// or
import { TreeItemProvider } from '@mui/x-tree-view';
// or
import { TreeItemProvider } from '@mui/x-tree-view-pro';
```

> **Note**: The `ref` is forwarded to the root element.

## Source code

If you did not find the information on this page, consider having a look at the implementation of the component for more detail.

- [/packages/x-tree-view/src/TreeItemProvider/TreeItemProvider.tsx](https://github.com/mui/material-ui/tree/HEAD/packages/x-tree-view/src/TreeItemProvider/TreeItemProvider.tsx)