Christopher Möller c431fe3d0a Update README.md
2022-03-02 14:35:12 +01:00
2022-02-08 16:24:27 +01:00
2019-10-15 22:44:10 +02:00
2021-12-11 07:14:54 +01:00
2020-10-08 00:44:05 +02:00
2020-05-16 01:12:13 +02:00
2021-04-24 16:39:51 +02:00
2022-01-24 12:23:07 +01:00
2022-02-25 20:40:44 +01:00
2022-02-25 20:40:44 +01:00
2020-12-07 18:40:46 +01:00
2019-10-22 14:15:36 +02:00
2022-03-02 14:35:12 +01:00

readme-header-dark readme-header

GitHub License MIT npm downloads GitHub Repo stars GitHub release (latest by date)

Wire Your Ideas With React Flow!

A highly customizable React component for building interactive graphs and node-based editors.

🚀 Getting Started | 📖 Documentation | 📺 Examples | ☎️ Discord


Key Features

  • Easy to use: Seamless zooming and panning, single- and multi selection of graph elements and keyboard shortcuts are supported out of the box
  • Customizable: Different node and edge types and support for custom nodes with multiple handles and custom edges
  • Fast rendering: Only nodes that have changed are re-rendered and only those in the viewport are displayed
  • Hooks and Utils: Hooks for handling nodes, edges and the viewport and graph helper functions
  • Plugin Components: Background, MiniMap and Controls
  • Reliable: Written in Typescript and tested with cypress

Installation

The easiest way to install the latest version of React Flow is to install it via npm:

npm install react-flow-renderer

Usage Example

import ReactFlow, { MiniMap, Controls } from 'react-flow-renderer';

function Flow({ nodes, edges, onNodesChange, onEdgesChange, onConnect }) {
  return (
    <ReactFlow
      nodes={nodes}
      edges={edges}
      onNodesChange={onNodesChange}
      onEdgesChange={onEdgesChange}
      onConnect={onConnect}
    >
      <MiniMap />
      <Controls />
    </ReactFlow>
  );
}

Local Development

@todo

Maintainers

React Flow is developed and maintained by webkid, a data visualization studio from Berlin. If you need help or want to talk to us about a collaboration, feel free to contact us:

You can also use our contact form or join the React Flow Discord Server.

Community Packages

Credits

React Flow was initially developed for datablocks, a graph-based editor for transforming, analyzing and visualizing data in your browser. Under the hood, React Flow depends on these great libraries:

  • d3-zoom - used for zoom, pan and drag interactions with the graph canvas
  • react-draggable - used for making the nodes draggable
  • zustand - internal state management

License

React Flow is MIT licensed.

Description
No description provided
Readme 38 MiB
Languages
TypeScript 85.5%
Svelte 11.6%
CSS 2.3%
JavaScript 0.6%