intuit / intuit/devtools-ds

Tree component: multiple items at the root level

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
272
Forks
15
PR merge metrics
No merged PRs in 30d

Description

It looks like the tree component could only build trees with one root node.

![image](https://user-images.githubusercontent.com/5792787/177376463-dd23c200-523e-42b6-bc26-7ca1d1117cbf.png)
"School Activities" in examples.

In my use case I need to build a tree with multiple items at the root level.
Deque University has such an example: https://dequeuniversity.com/library/aria/tree-view
![image](https://user-images.githubusercontent.com/5792787/177376963-af5e9520-6547-464c-bca4-2fca23caa0d2.png)

I tried to workaround the issue, placing multiple components one under another:
```jsx
...
...
```
but this does not produce a valid tree structure and I lost the ability to move around the root nodes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.