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

Function SnippetInput

web/src/components/ai-elements/snippet.tsx:68–79  ·  view source on GitHub ↗
({ className, ...props }: SnippetInputProps)

Source from the content-addressed store, hash-verified

66>;
67
68export const SnippetInput = ({ className, ...props }: SnippetInputProps) => {
69 const { code } = useContext(SnippetContext);
70
71 return (
72 <InputGroupInput
73 className={cn("text-foreground", className)}
74 readOnly
75 value={code}
76 {...props}
77 />
78 );
79};
80
81export type SnippetCopyButtonProps = ComponentProps<typeof InputGroupButton> & {
82 onCopy?: () => void;

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected