react-flow

Create interactive node-based graphs and workflow editors in React.

1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/jrmatherly/shipit --skill react-flow-jrmatherly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-flow
Source: https://github.com/jrmatherly/shipit/tree/main/.claude/skills/react-flow
Command: npx skills add https://github.com/jrmatherly/shipit --skill react-flow-jrmatherly

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies building and customizing interactive node-based graphs and workflow editors in React, removing friction around wiring nodes, styling edges, handling events, and programmatic viewport control.

Core Features & Use Cases

  • Interactive Graphs: Create draggable nodes and connectable edges with built-in types and custom components.
  • Custom Nodes & Edges: Implement typed NodeProps and EdgeProps to render domain-specific UI, including HTML edge labels, animated edges, and SVG text along paths.
  • Viewport & Events: Use hooks to fit view, zoom, center, convert coordinates, and respond to node/edge/selection events for rich UX and automation.
  • Use Case: Build an internal workflow editor or monitoring dashboard where users visually compose processes, inspect node data, and trigger actions from edge interactions.

Quick Start

Open a React project, install @xyflow/react, and add a React Flow canvas with initial nodes and edges to visualize and interact with your workflow.

Frequently Asked Questions about react-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build interactive node-based graphs in React?

Interactive node-based graphs in React are built using draggable nodes, connectable edges, and custom components. You define initial nodes and edges on a canvas to visualize and interact with workflows, allowing users to visually compose processes and trigger actions.

Can I create custom nodes and edges for a React workflow editor?

Custom nodes and edges for a React workflow editor are created using typed NodeProps and EdgeProps. This approach renders domain-specific UI, supporting HTML edge labels, animated edges, and SVG text along paths for rich visual interactions.

How do I control the viewport and handle events in a React flow canvas?

Viewport control and event handling in a React flow canvas are managed through hooks like useReactFlow. You can programmatically fit view, zoom, center, convert coordinates, and respond to node, edge, or selection events to build rich UX and automation.

What is the best way to visualize and edit workflows in a web-based dashboard?

Visualizing and editing workflows in a web-based dashboard is best achieved with an interactive graph editor. Users visually compose processes, inspect node data, and trigger actions from edge interactions, supported by typed APIs for programmatic control.

Do I need to install external dependencies to use React Flow hooks?

Yes, you need to install the @xyflow/react package in your React project to use React Flow hooks. This provides the necessary APIs and utilities, such as useNodesState, useEdgesState, and fitView, to implement programmatic graph control.