Skip to content

CodeBlockProps

CodeBlockProps = object

PropertyTypeDescription
contentstringYour code (as text).
copiable?booleanWhether or not to show a clipboard button which, when clicked, copies the current snippet to the user clipboard. Default false
highlighting?booleanWhether or not to apply syntax highlighting to the rendered code. Default true
language?LanguageSpecify the code language to apply syntax highlighting to the code block. Default text