Skip to content

ArdoCodeBlockProps

Interface ArdoCodeBlockProps

API / interfaces / ardocodeblockprops

Interface: ArdoCodeBlockProps

Properties

code

optional

code: string

The code to display (as prop or as children string)

language

optional

language: string

Programming language for syntax highlighting

title

optional

title: string

Optional title shown above the code

lineNumbers

optional

lineNumbers: boolean

Show line numbers

highlightLines

optional

highlightLines: number[]

Line numbers to highlight

children

optional

children: ReactNode

Code as children — supports template literals with auto-outdent

__html

optional

__html: string

Pre-rendered Shiki HTML (injected by ardo:codeblock-highlight plugin)

Source

ui/components/CodeBlock.tsx:43


ArdoCodeGroupProps →