I needed this functionality for a project where our team uses MUI, so I wanted to share a minimal example of my implementation. It requires some saved state to share between the tree and the items, and a way to programmatically add parents to the items.
Inspired by:
- Selectable Tree view by @michelengelen
- MUI Rich Tree View - Customization - Common examples
- MUI Rich Tree View - Selection - Parent/children relationship
MUI-X Issues: