vue-mermaid-render
v0.2.0
Published
![npm](https://img.shields.io/npm/v/vue-mermaid-render) ![downloads](https://img.shields.io/npm/dw/vue-mermaid-render)
Downloads
843
Maintainers
Readme
vue-mermaid-render
Vue 3 component to render diagrams with Mermaid.
Install
$ npm install vue-mermaid-render
Use
<script setup lang="ts">
import { VueMermaidRender } from 'vue-mermaid-render'
const content = `
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
`
</script>
<template>
<VueMermaidRender :content="content" />
</template>
Props
content
:string
diagram content stringconfig
:MermaidConfig
mermaid config