React Flow

LearnExamplesReference
GitHubReact Flow Pro
  • Examples
  • Feature Overview
    • Custom Nodes
    • Updating Nodes
    • Stress Test
    • Hidden
    • Drag Handle
    • Easy Connect
    • Add Node On Edge Drop
    • Proximity Connect
    • Node Resizer
    • Node Toolbar
    • Rotatable Node
    • Dynamic Grouping
    • Intersections
    • Shapes
    • Connection Limit
    • Delete Middle Node
    • Custom Edges
    • Animating Edges
    • Edge Types
    • Editable Edge
    • Reconnect Edge
    • Connection Line
    • Multi Connection Line
    • Edge Markers
    • Delete Edge on Drop
    • Floating Edges
    • Simple Floating Edges
    • Edge Label Renderer
    • Temporary Edges
    • Sub Flow
    • Horizontal Flow
    • Dagre Tree
    • Entitree Flex Tree
    • Elkjs Tree
    • Elkjs Multiple Handles
    • Auto Layout
    • Force Layout
    • Expand and Collapse
    • Workflow Builder
    • Interaction Props
    • Drag and Drop
    • Computing Flows
    • Validation
    • Connection Events
    • Preventing Cycles
    • Undo and Redo
    • Copy and Paste
    • Helper Lines
    • Touch Device
    • Save and Restore
    • Zoom Transitions
    • Collaborative
    • Contextual Zoom
    • Context Menu
    • Styled Components
    • Tailwind
    • Turbo Flow
    • Base Style
    • Dark Mode
    • Static Server Side Generation
    • Download Image
    • ReactFlowProvider
    • useReactFlow
ExamplesInteraction
Drag and Drop

Drag and Drop

A drag and drop user interface is very common for node-based workflow editors. The drag and drop behaviour outside of the React Flow pane is not built in but can be implemented with the native HTML Drag and Drop API (used in this example) or a third party library like react-draggable.

export default function App() {
  const data: string = "world"

  return <h1>Hello {data}</h1>
}

Read-only
Feature OverviewDark Mode

A project by the xyflow team

We are building and maintaining open source software for node-based UIs since 2019.

Docs

Getting StartedAPI ReferenceExamplesShowcase

Social

DiscordGithubX / TwitterBluesky

xyflow

BlogOpen SourceAboutContact
Careers hiring

Legal

MIT LicenseCode of ConductImprint

info@xyflow.com — Copyright © 2024 webkid GmbH. All rights reserved — website design by Facu Montanaro