Function
CodeBlockContainer
({
className,
language,
style,
...props
}: HTMLAttributes<HTMLDivElement> & { language: string })
Source from the content-addressed store, hash-verified
| 307 | CodeBlockBody.displayName = "CodeBlockBody"; |
| 308 | |
| 309 | export 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 | |
| 330 | export const CodeBlockHeader = ({ |
| 331 | children, |
Callers
nothing calls this directly
Tested by
no test coverage detected