Files
mermaid/packages/mermaid/src/docs/config/layouts.md
2025-09-02 15:13:45 +05:30

587 B

Layouts

This page lists the available layout algorithms supported in Mermaid diagrams.

Supported Layouts

How to Use

You can specify the layout in your diagram's YAML config or initialization options. For example:

---
config:
  layout: elk
---
graph TD;
  A-->B;
  B-->C;