Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 组仢。

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)