MCPcopy Create free account
hub / github.com/AntiHub-Project/AntiHub / Node

Function Node

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected