Skip to Content
ExamplesEdges

Custom Edges

React Flow comes with four different edge types - default (bezier), straight, step and smoothstep. It’s also possible to create a custom edge, if you need special edge routing or controls at the edge. In this example we are demonstrating how to implement an edge with a button, a bi-directional edge, a self connecting edge. In all examples we are using the BaseEdge component as a helper.

import { createRoot } from 'react-dom/client'; import App from './App'; const container = document.querySelector('#app'); const root = createRoot(container); root.render(<App />);
Last updated on