Logo
NeoArc Studio

Mermaid Diagram Block

Create diagrams using Mermaid syntax. Supports flowcharts, sequence diagrams, class diagrams, state machines, and more. Rendered directly in the viewer.

The Mermaid block renders diagrams from text-based Mermaid syntax. This allows you to create and version-control diagrams using a simple markup language that gets rendered into SVG graphics.

When to Use

Block Properties

PropertyRequiredDescription
CodeYesThe diagram definition in Mermaid syntax
CaptionNoDescription displayed below the diagram
ThemeNoVisual style: default, dark, forest, or neutral

Theme Options

Example: Flowchart

A simple decision flow using Mermaid syntax.

Example: Sequence Diagram

Showing interactions between components.

Supported Diagram Types

TypeUse Case
flowchartFlowcharts with nodes and edges
sequenceDiagramInteraction sequences between participants
classDiagramClass relationships and hierarchies
stateDiagramState machines and transitions
erDiagramEntity relationships for data models
ganttProject timelines and schedules
piePie charts for data visualisation
gitGraphGit branch visualisation

Mermaid vs Full Diagram Editor

CapabilityMermaid BlockFull Diagram Editor
Input MethodText-based syntaxVisual drag-and-drop
PositioningAutomatic layoutPrecise manual positioning
IconsLimited shapesIcon libraries from Lucide, Heroicons, Bootstrap and brand collections
AnimationNot supportedStep-by-step presentation
StylingTheme presets onlyFull colour and style control
Best ForQuick, simple diagramsComplex architecture diagrams