MCPcopy Create free account
hub / github.com/vercel/examples / ToolMessage

Function ToolMessage

apps/vibe-coding-platform/components/chat/tool-message.tsx:4–18  ·  view source on GitHub ↗
(props: {
  className?: string
  children: ReactNode
})

Source from the content-addressed store, hash-verified

2import { cn } from '@/lib/utils'
3
4export function ToolMessage(props: {
5 className?: string
6 children: ReactNode
7}) {
8 return (
9 <div
10 className={cn(
11 'text-sm px-3.5 py-3 border border-border bg-background rounded-md font-mono',
12 props.className
13 )}
14 >
15 {props.children}
16 </div>
17 )
18}

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected