react-flow-node-ts

Create React Flow node components with TypeScript types and Zustand store integration.

1|Updated Aug 17, 2025
One-click install
npx skills add https://github.com/ratnesh-maurya/mdconverter --skill react-flow-node-ts-ratnesh-maurya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-flow-node-ts
Source: https://github.com/ratnesh-maurya/mdconverter/tree/main/.claude/skills/react-flow-node-ts
Command: npx skills add https://github.com/ratnesh-maurya/mdconverter --skill react-flow-node-ts-ratnesh-maurya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve? Building custom nodes for React Flow canvases requires repetitive boilerplate: TypeScript data interfaces, handle placement, NodeResizer wiring, and store integration. This Skill provides templates and integration steps so each new node follows the same established pattern. ## Core Features & Use Cases - Node Component Templates: Copy-ready templates for node components with memo, NodeResizer, and Handle patterns. - TypeScript Type Definitions: Template for node data interfaces extending Record<string, unknown> and typed Node generics. - Store Integration Guidance: Steps to wire nodes into a Zustand app store, canvas nodeTypes registry, and menus. - Use Case: When adding a new VideoNode to a visual workflow editor, copy the templates, replace the placeholders, and follow the six integration steps to register it in the canvas. ## Quick Start Create a new React Flow node component named VideoNode with TypeScript types and register it in the canvas nodeTypes.

Frequently Asked Questions about react-flow-node-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom node in React Flow with TypeScript?

Define a data interface extending Record<string, unknown>, then create a typed Node with your data type and a string literal type identifier. Build a memoized component receiving id, data, and selected props, and render Handle components for connections.

How to add handles to a React Flow custom node?

Import Handle and Position from React Flow, then render Handle components inside your node with type set to target or source and a position such as Position.Top or Position.Bottom. Handles define where edges connect to the node.

Can I use Zustand with React Flow for node state?

Yes, Zustand works well for React Flow state management. Select store actions like updateNode inside the node component with useAppStore, and store node defaults in the store so new nodes initialize with consistent data.

How do I make a React Flow node resizable?

Render the NodeResizer component inside your node and control its visibility with the isVisible prop, typically tied to the selected state and an editing canvas mode. The node also needs width and height passed through its props.

Where do I register custom node types in React Flow?

Register custom nodes in the nodeTypes object passed to the ReactFlow canvas component, mapping each type string to its component. Also export the component from your nodes index file and add it to any node creation menus.