Skip to content

Sequence

The Astro D2 integration can be used to create sequence diagrams:

src/content/docs/example.md
```d2
shape: sequence_diagram
Alice -> Bob: What should I use to create diagrams?
Bob -> Alice: The Astro D2 integration
```

The above code block will be rendered as the following diagram:

Diagram