Skip to main content

Function: CodeBlock()

CodeBlock(props): Element

Defined in: packages/core/src/react/blocks/CodeBlock.tsx:35

The CodeBlock component implements block parsing for the core/code block.

This component must be used within a BlocksRenderer component.

<BlocksRenderer html={html}>
<CodeBlock component={DebugComponent} />
</BlocksRenderer>

Parameters

props

ICodeBlock

Component properties

Returns

Element