Skip to content

<MermaidAdapter>

Renders a Mermaid chart and bridges its rendered nodes/edges to DiagramStepper regions.

NameTypeDefaultDescription
chartstringMermaid chart definition.
regionMapRecord<string, string>Map Mermaid node/edge IDs to DiagramStepper region IDs.
config?Record<string, unknown>Pass-through Mermaid configuration.
className?stringClass on the wrapping div.

Region IDs

For nodes, the Mermaid node identifier (e.g. A). For edges, the convention is <source>-<target> (e.g. A-B). Inspect the rendered SVG if you’re unsure.