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

Function CodeBlockContainer

web/src/components/ai-elements/code-block.tsx:309–328  ·  view source on GitHub ↗
({
  className,
  language,
  style,
  ...props
}: HTMLAttributes<HTMLDivElement> & { language: string })

Source from the content-addressed store, hash-verified

307CodeBlockBody.displayName = "CodeBlockBody";
308
309export const CodeBlockContainer = ({
310 className,
311 language,
312 style,
313 ...props
314}: HTMLAttributes<HTMLDivElement> & { language: string }) => (
315 <div
316 className={cn(
317 "group relative w-full overflow-hidden rounded-md border bg-background text-foreground",
318 className
319 )}
320 data-language={language}
321 style={{
322 containIntrinsicSize: "auto 200px",
323 contentVisibility: "auto",
324 ...style,
325 }}
326 {...props}
327 />
328);
329
330export const CodeBlockHeader = ({
331 children,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected