import React from 'react'; import styled from '@emotion/styled'; import { Flex, Box } from 'reflexbox'; import { Link } from 'gatsby'; import Page from 'components/Page'; import ContentSection from 'components/ContentSection'; import CenterContent from 'components/CenterContent'; import SectionIntro from 'components/SectionIntro'; import Button from 'components/Button'; import CodeBlock from 'components/CodeBlock'; import Showcases from 'components/Showcases'; import Icon from 'components/Icon'; import HeroFlow from 'components/HeroFlow'; import FlowA from 'components/TeaserFlow/A'; import FlowB from 'components/TeaserFlow/B'; import FlowC from 'components/TeaserFlow/C'; import { Paragraph, H1, H4 } from 'components/Typo'; import { baseColors } from 'themes'; import { getThemeColor } from 'utils/css-utils'; const metaTags = { title: 'React Flow', description: 'Highly customizable React.js library for building interactive node-based editors, flow charts and diagrams.', siteUrl: 'https://reactflow.dev', robots: 'index,follow', }; const SectionSubtitle = styled(H4)` font-weight: 400; line-height: 1.5; color: ${getThemeColor('silverDarken30')}; `; const HeadlineAbsolute = styled(Box)` position: absolute; top: 0; left: 0; width: 100%; z-index: 100; pointer-events: none; `; const HeadlineWrapper = styled(Box)` max-width: 400px; `; const DocsButton = styled(Button)` margin-right: 24px; pointer-events: all; background: ${getThemeColor('red')}; `; const ExampleButton = styled(Link)` pointer-events: all; display: flex; align-items: center; &&& { color: ${getThemeColor('text')}; &:hover { color: ${getThemeColor('red')}; polyline, line { stroke: ${getThemeColor('red')}; } } } `; const ContactButton = styled(Button)` background: ${getThemeColor('red')}; margin-right: 16px; `; const WorkButton = styled(Button)` background: ${getThemeColor('violet')}; &:hover { background: ${getThemeColor('red')}; } `; const Home = () => { return (

Wire your ideas with React Flow

Highly customizable React.js library for building node-based editors and diagrams. Documentation Examples
React Flow is published on{' '} npm . You can install it via: A flow consists of nodes and edges (or just nodes). Together we call them elements. You can pass a set of elements as a prop to the ReactFlow component. Hereby all elements need unique ids. A node needs a position and a label and an edge needs a source (node id) and a target (node id). This is the most basic for a flow. A simple flow could look like this: Node 2 }, position: { x: 100, y: 100 } }, { id: 'e1-2', source: '1', target: '2', animated: true }, ]; const BasicFlow = () => ;`} /> Contact us View other work
); }; export default Home;