MCPcopy Create free account
hub / github.com/stackblitz/bolt.new / CodeBlockProps

Interface CodeBlockProps

app/components/chat/CodeBlock.tsx:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8const logger = createScopedLogger('CodeBlock');
9
10interface CodeBlockProps {
11 className?: string;
12 code: string;
13 language?: BundledLanguage | SpecialLanguage;
14 theme?: 'light-plus' | 'dark-plus';
15 disableCopy?: boolean;
16}
17
18export const CodeBlock = memo(
19 ({ className, code, language = 'plaintext', theme = 'dark-plus', disableCopy = false }: CodeBlockProps) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected