# React Flow

> Node-based editors and interactive diagrams: draggable nodes, connectable edges, minimap, zoom and pan.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/xyflow

freepaid

Node-based editors and interactive diagrams: draggable nodes, connectable edges, minimap, zoom and pan.

by xyflow[GitHub](https://github.com/xyflow/xyflow)[npm](https://npmjs.com/package/@xyflow/react)

[visit](https://reactflow.dev/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://reactflow.dev](https://reactflow.dev/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [shadcn/ui](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-ui)

Copy-in React components on Tailwind, built on Base UI, Radix or React Aria, plus a registry CLI.

no preview

### [Lucide](https://tastebase.ehsanulsiam.workers.dev/browse/lucide)

Clean 24px stroke icons, one component per icon, the default set for shadcn/ui.

no preview

### [BlockNote](https://tastebase.ehsanulsiam.workers.dev/browse/blocknote)

Notion-style block editor for React with slash menu, drag handles and collaboration built in, on Tiptap.

no preview

### [ElevenLabs UI](https://tastebase.ehsanulsiam.workers.dev/browse/elevenlabs-ui)

shadcn registry for voice and audio agents: orb, waveform, live mic visualiser, audio player, transcript viewer.

## For your agent

##### Install

`npm i @xyflow/react`

**Free + paid.** [Starter $169/mo, Professional $289/mo](https://reactflow.dev/pro?utm_source=tastebase&utm_medium=referral&utm_content=detail-page): React Flow Pro: Pro examples and templates (workflow editor), prioritised issues, support; the library stays MIT

##### Use it for

- a flowchart or node-based workflow editor with connecting nodes and edges (automation builders, AI pipelines)
- an interactive diagram, org chart or mind map people can drag, connect and zoom
- drag nodes on a canvas and connect them with edges (node graph editor)

##### Skip it when

- a static chart of numbers: use recharts or echarts
- a 3D scene or node material editor: use r3f
- rich text, markdown or notes editing: use tiptap or blocknote
- a read-only diagram from text: render Mermaid instead of hand-placing nodes

##### What's inside8 free

- Nodes
- Edges
- Handles
- MiniMap
- Controls
- Background
- Node Toolbar
- Node Resizer

##### Facts

**Frameworks**
react, svelte

**Styling**
css

**Weight**
medium

**Accessibility**
ok

**Maturity**
established

**License**
MIT

**Price**
Free core, Starter $169/mo, Professional $289/mo for more

##### Pairs with

[shadcn/ui](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-ui)[Lucide](https://tastebase.ehsanulsiam.workers.dev/browse/lucide)

```
import { ReactFlow, Background, Controls, useNodesState, useEdgesState, addEdge } from '@xyflow/react'
import '@xyflow/react/dist/style.css'

const [nodes, , onNodesChange] = useNodesState(initialNodes)
const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges)

<div style={{ height: 480 }}>
  <ReactFlow nodes={nodes} edges={edges} onNodesChange={onNodesChange} onEdgesChange={onEdgesChange} onConnect={(p) => setEdges((e) => addEdge(p, e))} fitView>
    <Background /><Controls />
  </ReactFlow>
</div>
```

https://reactflow.dev/examples

Loading website

[Visit](https://reactflow.dev/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
