MCPcopy Create free account
hub / github.com/Codehagen/Badget / CodeBlock

Function CodeBlock

src/components/ui/code-block.tsx:12–25  ·  view source on GitHub ↗
({ children, className, ...props }: CodeBlockProps)

Source from the content-addressed store, hash-verified

10} & React.HTMLProps<HTMLDivElement>;
11
12function CodeBlock({ children, className, ...props }: CodeBlockProps) {
13 return (
14 <div
15 className={cn(
16 "not-prose flex w-full flex-col overflow-clip border",
17 "border-border bg-card text-card-foreground rounded-xl",
18 className
19 )}
20 {...props}
21 >
22 {children}
23 </div>
24 );
25}
26
27export type CodeBlockCodeProps = {
28 code: string;

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected