ArdoCodeBlock
ArdoCodeBlock component
ArdoCodeBlock
Usage
<ArdoCodeBlock
code?={string}
language?={string}
title?={string}
lineNumbers?={boolean}
highlightLines?={number[]}
__html?={string}
>
{children}
</ArdoCodeBlock>Props
| Prop | Type | Required | Description |
|---|---|---|---|
| code | string | No | The code to display (as prop or as children string) |
| language | string | No | Programming language for syntax highlighting |
| title | string | No | Optional title shown above the code |
| lineNumbers | boolean | No | Show line numbers |
| highlightLines | number[] | No | Line numbers to highlight |
| children | ReactNode | No | Code as children — supports template literals with auto-outdent |
| __html | string | No | Pre-rendered Shiki HTML (injected by ardo:codeblock-highlight plugin) |