Skip to content

CodeBlockProps

CodeBlockProps: object

Type declaration

NameTypeDescription
contentstringYour code (as text).
copiablebooleanWhether or not to show a clipboard button which, when clicked, copies the current snippet to the user clipboard. Default false
highlightingbooleanWhether or not to apply syntax highlighting to the rendered code. Default true
languageLanguageSpecify the code language to apply syntax highlighting to the code block. Default text