Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hojas/vue-mermaid-render
π§ββοΈ Vue 3 component to render diagrams with Mermaid. η¨δΊζΈ²ζ mermaid η Vue 3 η»δ»Άγ
https://github.com/hojas/vue-mermaid-render
diagrams mermaid vue
Last synced: about 1 month ago
JSON representation
π§ββοΈ Vue 3 component to render diagrams with Mermaid. η¨δΊζΈ²ζ mermaid η Vue 3 η»δ»Άγ
- Host: GitHub
- URL: https://github.com/hojas/vue-mermaid-render
- Owner: hojas
- License: mit
- Created: 2023-02-09T09:16:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-23T11:29:04.000Z (about 2 months ago)
- Last Synced: 2024-11-23T12:25:38.602Z (about 2 months ago)
- Topics: diagrams, mermaid, vue
- Language: Vue
- Homepage:
- Size: 335 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-mermaid-render
![npm](https://img.shields.io/npm/v/vue-mermaid-render) ![downloads](https://img.shields.io/npm/dm/vue-mermaid-render)
Vue 3 component to render diagrams with Mermaid.
## Install
```shell
$ npm install vue-mermaid-render
```## Use
```vue
import { VueMermaidRender } from 'vue-mermaid-render'
const content = `
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
`
```
## Props
- `content`: `string` diagram content string
- `config`: `MermaidConfig` mermaid config## Related
[mermaid](https://github.com/mermaid-js/mermaid)