ArdoCodeBlockProps
Interface ArdoCodeBlockProps
API / interfaces / ardocodeblockprops
Interface: ArdoCodeBlockProps
Properties
code
optional
code: stringThe code to display (as prop or as children string)
language
optional
language: stringProgramming language for syntax highlighting
title
optional
title: stringOptional title shown above the code
lineNumbers
optional
lineNumbers: booleanShow line numbers
highlightLines
optional
highlightLines: number[]Line numbers to highlight
children
optional
children: ReactNodeCode as children — supports template literals with auto-outdent
__html
optional
__html: stringPre-rendered Shiki HTML (injected by ardo:codeblock-highlight plugin)
Source
ui/components/CodeBlock.tsx:43