Function
CodeBlock
({ children, className, ...props }: CodeBlockProps)
Source from the content-addressed store, hash-verified
| 10 | } & React.HTMLProps<HTMLDivElement>; |
| 11 | |
| 12 | function 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 | |
| 27 | export type CodeBlockCodeProps = { |
| 28 | code: string; |
Callers
nothing calls this directly
Tested by
no test coverage detected