-
Notifications
You must be signed in to change notification settings - Fork 5
Home
Mika Berglund edited this page Mar 6, 2024
·
8 revisions
The Blazorade Mermaid library allows you to easily add Mermaid diagrams to your Blazor application without having to manage JavaScript module importing or when to call various functions exposed in the Mermaid JS library.
Blazorade Mermaid currently supports Mermaid v10, by importing this Mermaid script.
Hope you find this wiki helpful when adding Blazorade Mermaid to your application. Remember also to read this article on my blog for more information about this library.
Blazorade Mermaid is very simple to use in your application. Simply follow the steps below, and you're good to go.
- Add a reference to Blazorade Mermaid to your Blazor application or library.
- Add the following
using
statement to your_Imports.razor
file.@using Blazorade.Mermaid.Components
- Add the
<MermaidDiagram>
component to the page you want to show a diagram on, and set theDefinition
parameter to the definition for the diagram you want to show.
- Samples section - Contains sample code on how to use Blazorade Mermaid in your application
- Blog article - An article on by blog about Blazorade Mermaid.