CodeBlockProps
CodeBlockProps:
object
Type declaration
Name | Type | Description |
---|---|---|
content | string | Your code (as text). |
copiable | boolean | Whether or not to show a clipboard button which, when clicked, copies the current snippet to the user clipboard. Default false |
highlighting | boolean | Whether or not to apply syntax highlighting to the rendered code. Default true |
language | Language | Specify the code language to apply syntax highlighting to the code block. Default text |