Loading...
Copy and paste nodes and edges
The <Clipboard />
component can only be used properly within the <XFlow />
component.
By importing this component under the XFlow component, you can enable the ability to copy and paste nodes and edges on the canvas.
Combined with useClipboard, you can quickly implement copy and paste functionality.
<XFlow>...<Clipboard /></XFlow>
Parameter Name | Description | Type | Default Value |
---|---|---|---|
useLocalStorage | When enabled, the copied nodes/edges are also saved to localStorage , allowing copy/paste to work even after the browser is refreshed or reopened. | boolean | false |