详细内容
Wire your ideas with React Flow
A customizable React component for building node-based editors and interactive diagrams
output
Your browser doesn't support WebGL 😢
shape color
#ff0071
shape type
cube
pyramid
zoom level
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
33.9K
Github Stars
2.88M
Weekly Installs
MIT
License
React Flow is a MIT-licensed open source library. You can help us to ensure the further development and maintenance by subscribing to React Flow Pro.
Getting Started with React Flow
Make sure you’ve installed npm, pnpm or yarn. Then you can install React Flow via:
npm install @xyflow/react
Ready out-of-the-box
The things you need are already there: dragging nodes, zooming, panning, selecting multiple nodes, and adding/removing elements are all built-in.
Hello
World
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
Powered by us. Designed by you.
React Flow nodes are simply React components, ready for your interactive elements. We play nice with Tailwind and plain old CSS.
Node Creator
NameShapeRectangleRectangleCircleAdd
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
All the right plugins
Make more advanced apps with the Background, Minimap, Controls, Panel, NodeToolbar, and NodeResizer components.
A
B
C
D
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
Used By
Project Showcase
Used by thousands of people
From solo open-source developers, to companies like Stripe and
Typeform. We’ve seen the library used for data processing tools,
chatbot builders, machine learning, musical synthesizers, and
more.



Stripe Docs
Diagrams for process documentation with interactive nodes
DoubleLoop
Node-based dashboard builder to monitor business metrics
TypeForm
Interactive tool to build and visualize complex survey logic
-
A fresh look for our UI components and how to upgrade your project
-
Changelog for React Flow version 12.9.0
-
Changelog for React Flow version 12.8.5
A project by xyflow
We are xyflow, a small team of passionate developers based in Berlin. We are the maintainers of React Flow, Svelte Flow, and the communities around them.
Blog About us Open Source Contact Us
Svelte Flow \
A customizable Svelte component for building node-based editors and interactive diagrams\
Visit Website xyflow \
The team behind React Flow and Svelte Flow. Read updates and blog posts from us and about how we approach open source development.\
Visit Website
