A block is a quoted label. The words between two blocks label the arrow that joins them.
block-beta
a["A"] space:2 b["B"]
a -- "checks" --> bThe columns keyword sets how many blocks fit on one row.
block-beta
columns 3
a["A"]
b["B"]
c["C"]An arrow is a block too. Its name carries the direction, and the angle brackets hold its label.
block-beta
Frontend blockArrowId6<[" "]>(right) Backend
space:2 down<[" "]>(down)
Disk left<[" "]>(left) Database[("Database")]classDef names a style, and class applies it to the blocks you name.
block-beta
columns 2
Frontend["Frontend"] Backend["Backend"]
classDef front fill:#696,stroke:#333;
classDef back fill:#969,stroke:#333;
class Frontend front
class Backend back