@nilscox/graphviz-react

React bindings for graphviz


Keywords
graphviz, react, dot
License
Beerware
Install
npm install @nilscox/graphviz-react@0.1.0

Documentation

React bindings for Graphviz using ts-graphviz and Viz.js. This is somewhat similar to @ts-graphviz/react, but supporting react 18.

<Digraph attributes={{ rankdir: 'TB', nodesep: 0.25 }}>
  <Node id="A" shape="point" color="forestgreen" />
  <Node id="B" />
  <Edge targets={['A', 'B']} arrowsize={0.25} />
</Digraph>