mermaid-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

mermaid-react

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save mermaid-react

Usage

import React from 'react'
import MermaidReact from 'mermaid-react'
 
const t = `
pie title Pets adopted by volunteers
    "Dogs" : 386
    "Cats" : 85
    "Rats" : 15
`
 
const App = () => {
  return <MermaidReact id='test' mmd={t} onClick={() => console.log('test Click')} onRender={svg => console.log('render content', svg)} />
}
 
export default App
 

License

MIT © vv13

Readme

Keywords

none

Package Sidebar

Install

npm i mermaid-react

Weekly Downloads

71

Version

0.1.0

License

MIT

Unpacked Size

10.8 kB

Total Files

9

Last publish

Collaborators

  • zwhvv13