{% include "@bolt-components-code-snippet/code-snippet.twig" with {
display: "block",
lang: "html",
content: "Some code snippet"
} only %}
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
display
|
Defines if the code text is inline or block. |
string
|
block
|
|
lang
|
Language of the code text. |
string
|
html
|
|
syntax
|
Toggle between a light and dark syntax highlighting, or turn it off. Separate from Bolt theming. |
string
|
light
|
|
npm install @bolt/components-code-snippet