merIDK / Diagram types / Swimlane diagram
Mermaid swimlane diagram: example and syntax
Swimlane diagrams split a process into lanes, one per team or role, so you can see who does each step and where work changes hands.
Open this example in the editor
Example code
swimlane-beta LR
subgraph Customer
request[Request service]
receive[Receive update]
end
subgraph Support
triage[Triage request]
answer[Send answer]
end
subgraph Engineering
fix[Prepare fix]
end
request --> triage
triage -->|Known issue| answer
triage -->|Needs code| fix
fix --> answer
answer --> receive
Result
swimlane-beta LR
subgraph Customer
request[Request service]
receive[Receive update]
end
subgraph Support
triage[Triage request]
answer[Send answer]
end
subgraph Engineering
fix[Prepare fix]
end
request --> triage
triage -->|Known issue| answer
triage -->|Needs code| fix
fix --> answer
answer --> receiveSyntax quick reference
- Each lane is a
subgraph Name ... end. - Nodes and arrows use flowchart syntax.
swimlane-beta LRlays lanes out horizontally.
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.