Labeled Handle
A handle with a label that can be used to display additional information.
Last updated on
Make sure to follow the prerequisites before installing the component.
npx shadcn@latest add https://ui.reactflow.dev/labeled-handleimport React, { memo } from "react";
import { Position } from "@xyflow/react";
import { LabeledHandle } from "@/components/labeled-handle";
import { BaseNode } from "@/components/base-node";
const LabeledHandleDemo
import { Background, ReactFlow } from "@xyflow/react";
import LabeledHandleDemo from "./component-example";
const defaultNodes = [
{
id: "1",
position: { x: 200, y: 200 },
data: {},
type: "labeledHandle",
},
];