How to draw only left and bottom borders of a container?

I want to render something like this:

As you can see, each node in this tree has a left and a bottom border to outline the structure of this tree (to make it easier for users to read the tree structure).

I’ve checked the Border type, but it seems that it doesn’t offer this kind of feature.

Any idea how to implement this? Or any other suggestion to make tree structures more readable which is easier to implement?

Btw my current implementation looks like this, it looks ugly…

https://imgur.com/a/gXdWv8v (using link because I’m only able to put one image in a post)

I want to improve it, any help is appreciated!

You would use vertical and horizontal rules to achieve the same.

Thanks, I’ll give it a try

Looks good, but I have a feeling that Rule is just a wrapper around Container

It’s a little verbose to use it as border, I hope there will be a dedicated feature for drawing borders partially.

Well… there was already discussion on the same, but we might only get a helper function to do the same at best.