CanDoItAll.Components.Mermaid
0.1.17
See the version list below for details.
dotnet add package CanDoItAll.Components.Mermaid --version 0.1.17
NuGet\Install-Package CanDoItAll.Components.Mermaid -Version 0.1.17
<PackageReference Include="CanDoItAll.Components.Mermaid" Version="0.1.17" />
<PackageVersion Include="CanDoItAll.Components.Mermaid" Version="0.1.17" />
<PackageReference Include="CanDoItAll.Components.Mermaid" />
paket add CanDoItAll.Components.Mermaid --version 0.1.17
#r "nuget: CanDoItAll.Components.Mermaid, 0.1.17"
#:package CanDoItAll.Components.Mermaid@0.1.17
#addin nuget:?package=CanDoItAll.Components.Mermaid&version=0.1.17
#tool nuget:?package=CanDoItAll.Components.Mermaid&version=0.1.17
CanDoItAll.Components.Mermaid
Purpose
Mermaid renders authored flowcharts, sequence diagrams, and architecture maps inside a Blazor application. It wraps Mermaid with source normalization, pan/zoom controls, typed render errors, render results, node-click events, and the static assets a host needs.
Quick start
Register the renderer, include its assets once in the document head, then provide Mermaid source to MermaidDiagram:
// Program.cs
builder.Services.AddCanDoItAllMermaid();
@using CanDoItAll.Components.Mermaid
@* App.razor <head> *@
<MermaidHeadAssets />
<MermaidDiagram Title="Approval flow"
Source="""
flowchart LR
Draft --> Review --> Approved
"""
NodeClicked="HandleNodeClicked" />
Use the Rendered and Error callbacks when a page needs to react to diagram lifecycle or explain syntax problems. The Sandbox /groups/mermaid route provides a live reference.
Project Type
- SDK:
Microsoft.NET.Sdk.Razor - Target framework(s):
net10.0 - Validation command:
dotnet build src/CanDoItAll.Components.Mermaid/CanDoItAll.Components.Mermaid.csproj
References
Project references:
- None
Framework references:
- None
Direct package references:
Microsoft.AspNetCore.Components.Web (10.0.4)
Architecture Notes
Use this component for product-rendered Mermaid diagrams. Keep syntax guidance and authoring assistance outside the renderer; this library stays focused on rendering, options, normalization, and typed UI events.
Security defaults
MermaidDiagramOptions defaults to Mermaid's strict security level and disables HTML labels. Only opt into SecurityLevel = "loose" or HtmlLabels = true for diagram source that your application fully trusts; those options allow Mermaid to emit richer HTML and interactive content into the rendered SVG surface.
Related Docs
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.AspNetCore.Components.Web (>= 10.0.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CanDoItAll.Components.Mermaid:
| Package | Downloads |
|---|---|
|
CanDoItAll.Ledger.Components
Reusable Blazor components and workspaces for ledger accounts, transactions, business objects, analytics, and node operations. |
GitHub repositories
This package is not used by any popular GitHub repositories.