merIDK / Diagram types / Mind map
Mermaid mind map: example and syntax
Mind maps branch ideas out from one central topic. In Mermaid, indentation sets the hierarchy, so you can type an outline and get a mind map from it.
Open this example in the editor
Example code
mindmap
root((Mermaid))
Diagrams
Flowchart
Sequence
Gantt
Features
Themes
Layouts
dagre
ELK
Output
SVG
PNG
Result
mindmap
root((Mermaid))
Diagrams
Flowchart
Sequence
Gantt
Features
Themes
Layouts
dagre
ELK
Output
SVG
PNGSyntax quick reference
- Indent each child deeper than its parent.
- Node shapes:
((circle)),(rounded),[square],{{hexagon}}. - Add an icon with
::icon(fa fa-book).
How to use it
- Open the example in the editor, or paste your own Mermaid code.
- Edit the code on the left. The preview updates as you type, and errors point to the line.
- Export SVG or PNG, copy a Markdown block for GitHub or Notion, or copy a share link.