Report Bugs
Code
Ref
Shapes
Props
Lint
+
0 lines
v7 Syntax Reference
DIAGRAM SETTINGS
diagram "Title" Set title
direction LR|TB Layout direction
theme dark|light|blue|sepia Visual theme
CONFIG BLOCK (new v7)
config { Open config block
  laneWidth: 200 Lane width px
  laneGap: 8 Gap between lanes
  rowHeight: 100 Vertical row spacing
  radius: 10 Arrow corner radius
  fontSize: 11 Node label font size
  padding: 20 Node left padding
} Close config
LANES
lane "Name" blue Named color
lane "Name" #ff4466 Hex color
endlane Close lane
NODE TYPES
process id "Label" Rectangle
decision id "Q?" Diamond
start id Filled circle
end id Double circle
note id "Text" Dashed box
io id "Label" Parallelogram
sub id "Label" Sub-process
actor id "Name" ๐Ÿ‘ค Stick figure
db id "Name" ๐Ÿ—„ Cylinder
cloud id "Name" โ˜ Cloud blob
queue id "Name" โŠž Buffer queue
NODE OPTIONS (append)
color:#hex Override node color
w:200 h:80 Custom size
x:100 y:200 Pin position
ARROWS
arrow A -> B Solid
arrow A --> B Dashed
arrow A -x B Blocked
arrow A <-> B Bidirectional
ARROW OPTIONS (new v7)
"Label" Arrow label
YES / NO Branch color
from:right to:left Port control
style:dashed|dotted|thick|double Line style
color:#hex|name Custom color
width:2 Stroke width
end:diamond|open|circle|none Arrowhead
flip Flip route
COLORS
blue purple green yellow red pink cyan orange teal gray white black Named
#rgb or #rrggbb Hex
MISC
// comment Line comment
## Section heading Visual divider
๏ผ‹ Add Swimlane
Shapes โ€” drag onto canvas
Quick-add to selected lane
Click a node, arrow,
or lane to inspect.
Align
100%
Ready MemoLab select
Item