Skip to content

Tree view

Nested, collapsible lists, file trees, navigation and outlines, built on native <details>.

Files

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/tree.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-treeThe root list.
details > summaryA collapsible branch.
mn-tree-itemA leaf (link or button). aria-current marks the current one.

Accessibility

  • Branches are native disclosures: Enter/Space toggles, the state is announced. It is not the ARIA tree pattern (no arrow-key tree navigation), which keeps it working without JavaScript.
  • For file managers that need multi-select and arrow navigation, build the full tree pattern.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page