MCPcopy Create free account
hub / github.com/MagicCube/agentara / Node

Function Node

web/src/components/ai-elements/node.tsx:22–34  ·  view source on GitHub ↗
({ handles, className, ...props }: NodeProps)

Source from the content-addressed store, hash-verified

20};
21
22export const Node = ({ handles, className, ...props }: NodeProps) => (
23 <Card
24 className={cn(
25 "node-container relative size-full h-auto w-sm gap-0 rounded-md p-0",
26 className
27 )}
28 {...props}
29 >
30 {handles.target && <Handle position={Position.Left} type="target" />}
31 {handles.source && <Handle position={Position.Right} type="source" />}
32 {props.children}
33 </Card>
34);
35
36export type NodeHeaderProps = ComponentProps<typeof CardHeader>;
37

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected