Node Tooltip
A wrapper for node components that displays a tooltip when hovered. Built on top of the NodeToolbar component that comes with React Flow.
Last updated on
A wrapper for node components that displays a tooltip when hovered. Built on top of the NodeToolbar component that comes with React Flow.
Make sure to follow the prerequisites before installing the component.
npx shadcn@latest add https://ui.reactflow.dev/node-tooltipimport { Background, ReactFlow } from "@xyflow/react";
import NodeTooltipDemo from "./component-example";
const nodeTypes = {
nodeTooltip: NodeTooltipDemo,
};
const defaultNodes = [
{
id: "1",
position: { x: 200, y: