Skip to content

TreeView Diagram (v11.14.0+)

Introduction

A TreeView diagram is used to represent hierarchical data in the form of a directory-like structure.

Syntax

The structure of the tree depends only on indentation.

treeView-beta
    "<folder name>"
        "<file name>"
        "<folder name>"
            "<file name>"
    "<file-name>"

Examples

Code:
mermaid
Ctrl + Enter|
Code:
mermaid
Ctrl + Enter|

Config Variables

PropertyDescriptionDefault Value
rowIndentIndentation for each row10
paddingXHorizontal padding of row5
paddingYVertical padding of row5
lineThicknessThickness of the line1

Theme Variables

PropertyDescriptionDefault Value
labelFontSizeFont size of the label'16px'
labelColorColor of the label'black'
lineColorColor of the line'black'
Opens in mermaid.ai