Display.code
Renders code within your Buttonize app with syntax highlighting.
Usage
Preview
app.buttonize.io
Props
code
Required
string
The code to be rendered with syntax highlighting.
language
Required
string
The programming language of the code for proper syntax highlighting.
title
Optional
string
Optional title for the code block.
frame
Optional
’code’ | ‘terminal’ | ‘none’ | ‘auto’
Frame type for the code block. Default is 'code'
.
spacingTop
Optional
’sm’ | ‘md’ | ‘lg’ | ‘xl’
The amount of space to give above the component.
spacingBottom
Optional
’sm’ | ‘md’ | ‘lg’ | ‘xl’
The amount of space to give below the component.
width
Optional
1 | 2 | 3 | 4
The width of the component.