[ Web Proxy ]
URL:
Viewing: https://reactflow.dev/ui/components/devtools [Back]  [Original]

DevTools - React FlowSkip to Content

React Flow

LearnReferenceExamplesUIShowcaseMoreReact Flow ProRemove Attribution
SearchGitHubDiscord
UIComponents

DevTools

A debugging tool that provides data on the viewport, the state of each node, and logs change events. This component is based on DevTools and Debugging under Advanced Use.

You can import the entire <DevTools /> component, or optionally, import individual components for greater flexibility. These components include:

You can read more about the individual components at DevTools and Debugging. While we find these tools useful for making sure React Flow is working properly, you might also find them useful for debugging your applications as your flows and their interactions become more complex.

Installation

CLIManual

Make sure to follow the prerequisites before installing the component.

npmpnpmyarnbun
npx shadcn@latest add https://ui.reactflow.dev/devtools

Usage

1. Connect the component with your React Flow application.

import { Background, ReactFlow } from "@xyflow/react"; import { DevTools } from "@/registry/components/devtools/"; const defaultNodes = [ { id: "1a", type: "input", data: { label: "Node 1" }, position: { x: 250, y: 5 }, }, ]; export default function App() { return ( <div className="h-full w-full"> <ReactFlow defaultNodes={defaultNodes} fitView> <Background /> <DevTools position="top-left" /> </ReactFlow> </div> ); }
Last updated on August 19, 2026

A project by the xyflow team

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

Web Proxy Viewer  |  New URL  |  Original Page