<nve-code-block>
Properties
Text code to be process into a codeblock.
string
Determines the container styles of component. Flat enables nesting within other containers.
flat
inline
Adds styling to highlight the provided code lines. For many lines: use Comma seperated values, ex: (1,5,7). For range of lines, use hyphen seperated values, ex: (1-5). You can combine both such as: ex: (1,5,10-15,20).
string
Programming language that processes the codeblock.
bash
css
go
html
javascript
json
markdown
python
shell
toml
typescript
xml
yaml
Adds styling to show the line numbers of the codeblock.
boolean
Slots
source code as text, a <template>, or a <pre><code> block
Action controls overlaid at the start of the code area.
Optional nve-code-block-footer below the source scroller.
Optional nve-code-block-header above the source scroller.
CSS Properties
<nve-code-block-header>
Slots
Labels, supporting text, and action controls. Fills the space between the prefix and suffix.
Content displayed at the start of the row.
Content displayed at the end of the row.
CSS Properties
<nve-code-block-footer>
Slots
Labels, supporting text, and action controls. Fills the space between the prefix and suffix.
Content displayed at the start of the row.
Content displayed at the end of the row.