# Node URL: /components/node --- title: Node description: A composable node component for React Flow-based canvases with Card-based styling. path: elements/components/node --- The `Node` component provides a composable, Card-based node for React Flow canvases. It includes support for connection handles, structured layouts, and consistent styling using shadcn/ui components. The Node component is designed to be used with the [Canvas](/elements/components/canvas) component. See the [Workflow](/elements/examples/workflow) demo for a full example. ## Installation ## Usage ```tsx import { Node, NodeHeader, NodeTitle, NodeDescription, NodeAction, NodeContent, NodeFooter } from "@/components/ai-elements/node"; ``` ```tsx Node Title Optional description Main content goes here Footer content ``` ## Features - Built on shadcn/ui Card components for consistent styling - Automatic handle placement (left for target, right for source) - Composable sub-components (Header, Title, Description, Action, Content, Footer) - Semantic structure for organizing node information - Pre-styled sections with borders and backgrounds - Responsive sizing with fixed small width - Full TypeScript support with proper type definitions - Compatible with React Flow's node system ## Props ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} />