FYI You can nest <details> tags within <ul> and vice versa to create a collapsible tree menu without JS or CSS

E.G.
<details>
<summary>Root</summary>
<ul>
<li>
<details>
<summary>Sub</summary>
<ul><li>etc...</li></ul>
</details>
</li>
</ul>
</details>

Follow

@cypnk I found what I looked for.
Thanks!

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!