@joint/react
Version:
React bindings and hooks for JointJS to build interactive diagrams and graphs.
40 lines (24 loc) • 933 B
text/mdx
import { Meta, Story, Canvas, Controls, Markdown } from '@storybook/blocks';
import * as Stories from './story';
import Code from './code?raw';
import Css from './index.css?raw';
<Meta of={Stories} />
This is a demonstration of a flowchart created using the JointJS library. The flowchart showcases various nodes and connections, styled and rendered interactively.
Below is a live preview of the flowchart. You can interact with it to see how the nodes and links behave.
<Canvas of={Stories.Default} />
Here is the complete code used to create the flowchart. You can use this as a reference to build your own flowcharts.
<Markdown>
{`\`\`\`tsx
${Code}
\`\`\``}
</Markdown>
The following CSS styles are applied to the flowchart. These styles define the appearance of the nodes, links, and other elements.
<Markdown>
{`\`\`\`css
${Css}
\`\`\``}
</Markdown>