Function
Node
({ handles, className, ...props }: NodeProps)
Source from the content-addressed store, hash-verified
| 19 | }; |
| 20 | |
| 21 | export 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 | |
| 35 | export type NodeHeaderProps = ComponentProps<typeof CardHeader>; |
| 36 | |
Callers
nothing calls this directly
Tested by
no test coverage detected