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.
Edit diagrams in the editor
In the web editor, each Mermaid diagram has a toolbar to zoom, reset the view, show or hide the diagram code, and set theactions and placement properties.
To edit a large diagram, click Open fullscreen in the diagram toolbar. The full-screen view shows the diagram code beside a live preview, so you can edit the code and see the result as you type. Zoom with the toolbar buttons, the scroll wheel, or the + and - keys. Press 0 to reset the view, and press Esc to close the full-screen view.
Properties
boolean
Show or hide the interactive controls. When set, this overrides the default behavior (controls shown when diagram height exceeds 120px).
string
default:"bottom-right"
Position of the interactive controls. Options:
top-left, top-right, bottom-left, bottom-right.string
Additional CSS classes to apply to the diagram container.