File contents React Flow Documentation
[!IMPORTANT]
If you are using Tailwind CSS 4, you need to import the main React Flow CSS
stylesheet after you import the tailwindcss stylesheet. To ensure the
styles are loaded in the correct order, you should always import the styles in
your global.css file (or index.css file), after you import tailwindcss.
Avoid importing the styles in your App.tsx file or any other file that is
imported by your App.tsx file. Read more .
[!IMPORTANT]
If you are using Tailwind CSS 4, you need to import the main React Flow CSS
stylesheet after you import the tailwindcss stylesheet. To ensure the
styles are loaded in the correct order, you should always import the styles in
your global.css file (or index.css file), after you import tailwindcss.
Avoid importing the styles in your App.tsx file or any other file that is
imported by your App.tsx file. Read more .
Available Resources
Learn
autoPanOnNodeFocus
URL: /api-reference/react-flow#autopanonnodefocus
ariaLabelConfig
URL: /api-reference/react-flow#arialabelconfig
updateNodeData
URL: /api-reference/types/react-flow-instance#update-node-data
useNodeConnections
URL: /api-reference/hooks/use-node-connections
updateNodeData
URL: /api-reference/types/react-flow-instance#update-node-data
useNodeConnections
URL: /api-reference/hooks/use-node-connections
hooks
URL: /api-reference/hooks
Guide to Optimize React Flow Project Performance
Tuning Edge Animations ReactFlow Optimal Performance
5 Ways to Optimize React Flow in 10 minutes
selectionKeyCode
URL: /api-reference/react-flow#selectionkeycode
multiSelectionKeyCode
URL: /api-reference/react-flow#multiselectionkeycode
deleteKeyCode
URL: /api-reference/react-flow#deletekeycode
getBezierPath
URL: /api-reference/utils/get-bezier-path
getSimpleBezierPath
URL: /api-reference/utils/get-simple-bezier-path
getSmoothStepPath
URL: /api-reference/utils/get-smooth-step-path
getStraightPath
URL: /api-reference/utils/get-straight-path
<Handle />
URL: /api-reference/components/handle
<Handle />
URL: /api-reference/components/handle
<Handle />
URL: /api-reference/components/handle
<Handle />
URL: /api-reference/components/handle
Link : Repo: <
Link : Docs: <
Link : Repo: <
Link : Docs: <
Link : Repo: <
Link : Docs: <
Link : Repo: <
Link : Docs: < (good luck!)
d3-flextree
Cola.js
react-flow-smart-edge
Routing Orthogonal Diagram Connectors in JavaScript
useUpdateNodeInternal
URL: /api-reference/hooks/use-update-node-internals
useUpdateNodeInternals
URL: /api-reference/hooks/use-update-node-internals
getBezierPath
URL: /api-reference/utils/get-bezier-path
getBezierPath
URL: /api-reference/utils/get-bezier-path
Sub Flows : You can now add nodes to a parent node and create groups and nested flows
URL: /learn/layouting/sub-flows
useKeyPress hook : A util hook for handling keyboard events
URL: /api-reference/hooks/use-key-press
useReactFlow hook : Returns a React Flow instance that exposes functions to manipulate the flow
URL: /api-reference/hooks/use-react-flow
useNodes
URL: /api-reference/hooks/use-nodes
core concepts section
URL: /learn/concepts/core-concepts
Accessibility
URL: /learn/advanced-use/accessibility
Link : Better routing for smoothstep and step edges : <
Link : Nicer edge updating behavior : <
useOnViewportChange
URL: /api-reference/hooks/use-on-viewport-change
use-on-selection-change
URL: /api-reference/hooks/use-on-selection-change
useNodesInitialized
URL: /api-reference/hooks/use-nodes-initialized
<BaseEdge />
URL: /api-reference/components/base-edge
Separately installable packages
URL: /learn/concepts/built-in-components
useConnection hook : ** With this hook you can
URL: /api-reference/hooks/use-connection
viewport
URL: /api-reference/react-flow#viewport
ViewportPortal
URL: /api-reference/components/viewport-portal
onDelete
URL: /api-reference/react-flow#on-delete
onBeforeDelete
URL: /api-reference/react-flow#on-before-delete
isValidConnection
URL: /api-reference/react-flow#isvalidconnection
autoPanSpeed
URL: /api-reference/react-flow#autoPanSpeed
paneClickDistance
URL: /api-reference/react-flow#paneClickDistance
patternClassName
URL: /api-reference/components/background#pattern-class-name
the xyflow team
vite
shadcn/ui
UI components registry
<BaseNodeHeader />
URL: /ui/components/base-node
<DataEdge />
URL: /ui/components/data-edge
OscillatorNode
AudioContext
AnalyserNode
useReactFlow
URL: /api-reference/hooks/use-react-flow
onNodeClick
URL: /api-reference/react-flow#on-node-click
onKeyPress
URL: /api-reference/react-flow#on-key-press
UI
React Flow UI
shadcn CLI
AI SDK
React Flow UI
shadcn CLI
ELKjs
How to Use This Skill
Reference these resources when working with React Flow Documentation.
1 --- 2 name: react-flow-documentation 3 description: React Flow Documentation 4 --- 5 6 # React Flow Documentation 7 8 > \[!IMPORTANT] 9 10 If you are using Tailwind CSS 4, you need to import the main React Flow CSS 11 stylesheet after you import the `tailwindcss` stylesheet. To ensure the 12 styles are loaded in the correct order, you should always import the styles in 13 your `global.css` file (or `index.css` file), after you import `tailwindcss`. 14 **Avoid importing the styles in your `App.tsx` file or any other file that is 15 imported by your `App.tsx` file.** [Read more](/ui). 16 17 \[!IMPORTANT] 18 19 If you are using Tailwind CSS 4, you need to import the main React Flow CSS 20 stylesheet after you import the `tailwindcss` stylesheet. To ensure the 21 styles are loaded in the correct order, you should always import the styles in 22 your `global.css` file (or `index.css` file), after you import `tailwindcss`. 23 **Avoid importing the styles in your `App.tsx` file or any other file that is 24 imported by your `App.tsx` file.** [Read more](/ui). 25 26 ## Available Resources 27 28 ### Learn 29 30 - **autoPanOnNodeFocus** 31 - URL: /api-reference/react-flow#autopanonnodefocus 32 33 - **ariaLabelConfig** 34 - URL: /api-reference/react-flow#arialabelconfig 35 36 - **`updateNodeData`** 37 - URL: /api-reference/types/react-flow-instance#update-node-data 38 39 - **`useNodeConnections`** 40 - URL: /api-reference/hooks/use-node-connections 41 42 - **`updateNodeData`** 43 - URL: /api-reference/types/react-flow-instance#update-node-data 44 45 - **`useNodeConnections`** 46 - URL: /api-reference/hooks/use-node-connections 47 48 - **hooks** 49 - URL: /api-reference/hooks 50 51 - **Guide to Optimize React Flow Project Performance** 52 - URL: https://www.synergycodes.com/blog/guide-to-optimize-react-flow-project-performance 53 54 - **Tuning Edge Animations ReactFlow Optimal Performance** 55 - URL: https://liambx.com/blog/tuning-edge-animations-reactflow-optimal-performance 56 57 - **5 Ways to Optimize React Flow in 10 minutes** 58 - URL: https://www.youtube.com/watch?v=8M2qZ69iM20 59 60 - **`selectionKeyCode`** 61 - URL: /api-reference/react-flow#selectionkeycode 62 63 - **`multiSelectionKeyCode`** 64 - URL: /api-reference/react-flow#multiselectionkeycode 65 66 - **`deleteKeyCode`** 67 - URL: /api-reference/react-flow#deletekeycode 68 69 - **`getBezierPath`** 70 - URL: /api-reference/utils/get-bezier-path 71 72 - **`getSimpleBezierPath`** 73 - URL: /api-reference/utils/get-simple-bezier-path 74 75 - **`getSmoothStepPath`** 76 - URL: /api-reference/utils/get-smooth-step-path 77 78 - **`getStraightPath`** 79 - URL: /api-reference/utils/get-straight-path 80 81 - **`<Handle />`** 82 - URL: /api-reference/components/handle 83 84 - **`<Handle />`** 85 - URL: /api-reference/components/handle 86 87 - **`<Handle />`** 88 - URL: /api-reference/components/handle 89 90 - **`<Handle />`** 91 - URL: /api-reference/components/handle 92 93 - **Link**: Repo: < 94 - URL: https://github.com/dagrejs/dagre> 95 96 - **Link**: Docs: < 97 - URL: https://github.com/dagrejs/dagre/wiki#configuring-the-layout> 98 99 - **Link**: Repo: < 100 - URL: https://github.com/d3/d3-hierarchy> 101 102 - **Link**: Docs: < 103 - URL: https://d3js.org/d3-hierarchy> 104 105 - **Link**: Repo: < 106 - URL: https://github.com/d3/d3-force> 107 108 - **Link**: Docs: < 109 - URL: https://d3js.org/d3-force> 110 111 - **Link**: Repo: < 112 - URL: https://github.com/kieler/elkjs> 113 114 - **Link**: Docs: < (good luck!) 115 - URL: https://eclipse.dev/elk/reference.html> 116 117 - **d3-flextree** 118 - URL: https://github.com/klortho/d3-flextree 119 120 - **Cola.js** 121 - URL: https://github.com/tgdwyer/WebCola 122 123 - **react-flow-smart-edge** 124 - URL: https://github.com/tisoap/react-flow-smart-edge 125 126 - **Routing Orthogonal Diagram Connectors in JavaScript** 127 - URL: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 128 129 - **`useUpdateNodeInternal`** 130 - URL: /api-reference/hooks/use-update-node-internals 131 132 - **`useUpdateNodeInternals`** 133 - URL: /api-reference/hooks/use-update-node-internals 134 135 - **`getBezierPath`** 136 - URL: /api-reference/utils/get-bezier-path 137 138 - **`getBezierPath`** 139 - URL: /api-reference/utils/get-bezier-path 140 141 - ****Sub Flows****: You can now add nodes to a parent node and create groups and nested flows 142 - URL: /learn/layouting/sub-flows 143 144 - ****useKeyPress hook****: A util hook for handling keyboard events 145 - URL: /api-reference/hooks/use-key-press 146 147 - ****useReactFlow hook****: Returns a React Flow instance that exposes functions to manipulate the flow 148 - URL: /api-reference/hooks/use-react-flow 149 150 - **useNodes** 151 - URL: /api-reference/hooks/use-nodes 152 153 - **core concepts section** 154 - URL: /learn/concepts/core-concepts 155 156 - **Accessibility** 157 - URL: /learn/advanced-use/accessibility 158 159 - **Link**: **Better routing for smoothstep and step edges**: < 160 - URL: https://twitter.com/reactflowdev/status/1567535405284614145> 161 162 - **Link**: **Nicer edge updating behavior**: < 163 - URL: https://twitter.com/reactflowdev/status/1564966917517021184> 164 165 - **`useOnViewportChange`** 166 - URL: /api-reference/hooks/use-on-viewport-change 167 168 - **`use-on-selection-change`** 169 - URL: /api-reference/hooks/use-on-selection-change 170 171 - **`useNodesInitialized`** 172 - URL: /api-reference/hooks/use-nodes-initialized 173 174 - **`<BaseEdge />`** 175 - URL: /api-reference/components/base-edge 176 177 - **Separately installable packages** 178 - URL: /learn/concepts/built-in-components 179 180 - **`useConnection` hook**: ** With this hook you can 181 - URL: /api-reference/hooks/use-connection 182 183 - **`viewport`** 184 - URL: /api-reference/react-flow#viewport 185 186 - **`ViewportPortal`** 187 - URL: /api-reference/components/viewport-portal 188 189 - **`onDelete`** 190 - URL: /api-reference/react-flow#on-delete 191 192 - **`onBeforeDelete`** 193 - URL: /api-reference/react-flow#on-before-delete 194 195 - **`isValidConnection`** 196 - URL: /api-reference/react-flow#isvalidconnection 197 198 - **`autoPanSpeed`** 199 - URL: /api-reference/react-flow#autoPanSpeed 200 201 - **`paneClickDistance`** 202 - URL: /api-reference/react-flow#paneClickDistance 203 204 - **`patternClassName`** 205 - URL: /api-reference/components/background#pattern-class-name 206 207 - **the xyflow team** 208 - URL: https://xyflow.com/about 209 210 - **`vite`** 211 - URL: https://vite.dev 212 213 - **shadcn/ui** 214 - URL: https://ui.shadcn.com/ 215 216 - **UI components registry** 217 - URL: /ui 218 219 - **`<BaseNodeHeader />`** 220 - URL: /ui/components/base-node 221 222 - **`<DataEdge />`** 223 - URL: /ui/components/data-edge 224 225 - **OscillatorNode** 226 - URL: https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode 227 228 - **AudioContext** 229 - URL: https://developer.mozilla.org/en-US/docs/Web/API/AudioContext 230 231 - **`AnalyserNode`** 232 - URL: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode 233 234 - **`useReactFlow`** 235 - URL: /api-reference/hooks/use-react-flow 236 237 - **`onNodeClick`** 238 - URL: /api-reference/react-flow#on-node-click 239 240 - **`onKeyPress`** 241 - URL: /api-reference/react-flow#on-key-press 242 243 ### UI 244 245 - **React Flow UI** 246 - URL: /ui 247 248 - **shadcn CLI** 249 - URL: https://ui.shadcn.com/docs/cli 250 251 - **AI SDK** 252 - URL: https://ai-sdk.dev/ 253 254 - **React Flow UI** 255 - URL: /ui 256 257 - **shadcn CLI** 258 - URL: https://ui.shadcn.com/docs/cli 259 260 - **ELKjs** 261 - URL: https://github.com/kieler/elkjs 262 263 ## How to Use This Skill 264 265 Reference these resources when working with React Flow Documentation.
hk-vk/skills/tree/main/registry/react-flow-documentation commit ea44afcdd6
Frequently asked questions How do I install the React Flow Documentation skill? Run npx skillmds@latest add hk-vk/react-flow-documentation in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the React Flow Documentation skill do? React Flow Documentation It is listed under Web & Frontend on SkillMD.
Is React Flow Documentation safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with React Flow Documentation? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is React Flow Documentation free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published React Flow Documentation? hk-vk (@hk-vk) published this skill. Their other Agent Skills are listed on their SkillMD profile.