CodeBlock
CodeBlock(
props):Element
A code block renders code in a pre-formatted monospace text block with syntax highlighting.

Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
props | CodeBlockProps |
Returns
Section titled “Returns”Element
Examples
Section titled “Examples”import { CodeBlock } from "@netlify/sdk/ui/react/components";
<CodeBlock content={`<p>Hello, world!</p>`} language="html" />import { CodeBlock } from "@netlify/sdk/ui/react/components";
<CodeBlock content={`<p>Hello, world!</p>`} />