Code Block

A syntax-highlighted code display component with copy functionality.

Import

Usage

CodeBlock Props

AttributeTypeDefaultDescription
codestring-The code string to display and highlight.
languagestring'tsx'The programming language for syntax highlighting.
showLineNumbersbooleanfalseWhether to display line numbers.