Resizable Node
simple-ai/resizable-nodeFreeComponent
A wrapper React Flow node component that adds resizing functionality to other nodes.
Live preview
live · rendered by the registry
Rendered by simple-ai on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://simple-ai.dev/r/resizable-node.jsonSource
1import { NodeResizer } from "@xyflow/react";2import React from "react";3import { cn } from "@/lib/utils";4import { BaseNode } from "@/registry/ui/flow/base-node";56export const ResizableNode = React.forwardRef<7 HTMLDivElement,8 React.HTMLAttributes<HTMLDivElement> & {9 selected: boolean;10 }11>(({ className, selected, style, children, ...props }, ref) => (12 <BaseNode13 ref={ref}14 style={{15 ...style,16 minHeight: 200,17 minWidth: 250,18 maxHeight: 800,19 maxWidth: 800,20 }}21 className={cn(className, "h-full p-0 hover:ring-orange-500")}22 {...props}23 >24 <NodeResizer isVisible={selected} />25 {children}26 </BaseNode>27));28ResizableNode.displayName = "ResizableNode";
What it pulls in
npm packages
Other registry items
Files it writes
More from simple-ai
All 77 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| base-handlebase-handle | simple-ai | Components | Free | 1 dep | |
| base-nodebase-node | simple-ai | Components | Free | no deps | |
| Chat Inputchat-input | simple-ai | Components | Free | 7 deps | |
| Chat Messagechat-message | simple-ai | Components | Free | no deps | |
| Chat Message Areachat-message-area | simple-ai | Components | Free | 1 dep | |
| Chat Suggestionschat-suggestions | simple-ai | Components | Free | no deps | |
| Editable Handleeditable-handle | simple-ai | Components | Free | 1 dep | |
| Generate Text Nodegenerate-text-node | simple-ai | Components | Free | 1 dep |
