mermaid-element is a zero-config, dependency-free web component that declaratively renders Mermaid diagrams on any web page. It automatically loads Mermaid (v12) on demand via CDN, caches it for multiple diagrams on a page, and allows pinning specific versions or supplying a custom Mermaid instance.
Use this when adding diagrams to documentation sites, blogs, or apps where you want a simple drop-in declarative solution rather than hand-coding SVG or wiring up Mermaid's JavaScript API manually. It's especially useful for static or server-rendered pages with multiple diagrams.