Mermaid lets you build flowcharts, sequence diagrams, Gantt charts, and other diagrams using text and code. For a complete list of supported diagram types and syntax, see the Mermaid documentation.Documentation Index
Fetch the complete documentation index at: https://www.mintlify.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Mermaid flowchart example
ELK layout support
Mintlify supports the ELK (Eclipse Layout Kernel) layout engine for Mermaid diagrams. ELK optimizes arrangement to reduce overlapping and improve readability, which is useful for large or complex diagrams. To use ELK layout in your Mermaid diagrams, add the%%{init: {'flowchart': {'defaultRenderer': 'elk'}}}%% directive at the beginning of your diagram:
ELK layout example
Interactive controls
All Mermaid diagrams include interactive zoom and pan controls. By default, controls appear when the diagram height exceeds 120px.- Zoom in/out: Use the zoom buttons to increase or decrease the diagram scale.
- Pan: Use the directional arrows to move around the diagram.
- Reset view: Click the reset button to return to the original view.
Properties
Show or hide the interactive controls. When set, this overrides the default behavior (controls shown when diagram height exceeds 120px).
Position of the interactive controls. Options:
top-left, top-right, bottom-left, bottom-right.