TreeView Diagram Config Schema
https://mermaid.js.org/schemas/config.schema.json#/$defs/TreeViewDiagramConfigThe object containing configurations specific for treeView diagrams.
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|---|---|---|---|---|---|---|---|
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | config.schema.json* |
TreeViewDiagramConfig Type
object (TreeView Diagram Config)
all of
TreeViewDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| rowIndent | number | Optional | cannot be null | Mermaid Config |
| paddingX | number | Optional | cannot be null | Mermaid Config |
| paddingY | number | Optional | cannot be null | Mermaid Config |
| lineThickness | number | Optional | cannot be null | Mermaid Config |
| showIcons | boolean | Optional | cannot be null | Mermaid Config |
| defaultIconPack | string | Optional | cannot be null | Mermaid Config |
| filenameIcons | object | Optional | cannot be null | Mermaid Config |
| extensionIcons | object | Optional | cannot be null | Mermaid Config |
rowIndent
Horizontal distance between rows differing by one level
rowIndent
is optional
Type:
numbercannot be null
defined in: Mermaid Config
rowIndent Type
number
rowIndent Constraints
minimum: the value of this number must greater than or equal to: 0
rowIndent Default Value
The default value is:
10paddingX
Horizontal padding of label
paddingX
is optional
Type:
numbercannot be null
defined in: Mermaid Config
paddingX Type
number
paddingX Constraints
minimum: the value of this number must greater than or equal to: 0
paddingX Default Value
The default value is:
5paddingY
Vertical padding of label
paddingY
is optional
Type:
numbercannot be null
defined in: Mermaid Config
paddingY Type
number
paddingY Constraints
minimum: the value of this number must greater than or equal to: 0
paddingY Default Value
The default value is:
5lineThickness
Thickness of the line
lineThickness
is optional
Type:
numbercannot be null
defined in: Mermaid Config
lineThickness Type
number
lineThickness Constraints
minimum: the value of this number must greater than or equal to: 0
lineThickness Default Value
The default value is:
1showIcons
Whether to show the default file/folder icons next to labels. Explicit icon() annotations always render, regardless of this setting.
showIcons
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showIcons Type
boolean
showIcons Default Value
The default value is:
falsedefaultIconPack
Name of a registered iconify pack used to resolve unprefixed icon references — icon(name) annotations and filenameIcons/ extensionIcons values without a pack: prefix. The pack must be registered with registerIconPacks. When empty, unprefixed names resolve to the built-in file/folder icons.
defaultIconPack
is optional
Type:
stringcannot be null
defined in: Mermaid Config
defaultIconPack Type
string
defaultIconPack Default Value
The default value is:
""filenameIcons
Exact-filename → icon map used to pick a file's icon when showIcons is enabled, e.g. { "Dockerfile": "material-icon-theme:docker" }. Values are resolved like icon() references: pack:name is used as-is, unprefixed names resolve via defaultIconPack, and none hides the icon for matching files.
filenameIcons
is optional
Type:
object(Details)cannot be null
defined in: Mermaid Config
filenameIcons Type
object (Details)
filenameIcons Default Value
The default value is:
{}extensionIcons
File-extension → icon map used to pick a file's icon when showIcons is enabled, e.g. { ".ts": "material-icon-theme:typescript" }. Keys are lowercase and may include or omit the leading dot. Values are resolved like icon() references: pack:name is used as-is, unprefixed names resolve via defaultIconPack, and none hides the icon for matching files.
extensionIcons
is optional
Type:
object(Details)cannot be null
defined in: Mermaid Config
extensionIcons Type
object (Details)
extensionIcons Default Value
The default value is:
{}