Skip to main content

<MermaidFileLoader />

The MermaidFileLoader component is a EventCatalog component that will render a Mermaid file into your markdown page.

Support​

The <MermaidFileLoader/> component is supported in domains, services, and all messages, changelogs, and custom documentation pages.

Usage​

Simply include the <MermaidFileLoader/> component in your markdown with a file path to your Mermaid file.

Basic Example

---
# event frontmatter
---

The User Registered event is triggered when a new user signs up for our platform.
<MermaidFileLoader file="mermaid.mmd" />

Output example in EventCatalog​

When you use the <MermaidFileLoader /> component, it will render the diagram in your EventCatalog page.

Example output

Props​

NameTypeDefaultDescription
file (required)string(empty)The .mmd or .mermaid file to load into the diagram block. Path is resolved by EventCatalog.