Took a while to dig it out of an old project.
The widget I mean is called ExpandableArea - when nested, it creates a tree-like structure:
You can nest vertical boxes chuck full of other Expandable Areas. And it can be populated dynamically, of course, so there’s no need to manually punch in thousands of entries. You’d need to feed it data in a loop - in this case it’s fetched from a Data Table.