Skip to main content

CodeSnippetProps

Home > @backstage/core-components > CodeSnippetProps

Properties for CodeSnippet()

Signature:

export interface CodeSnippetProps 

Properties

PropertyModifiersTypeDescription
customStyle?any(Optional) Custom styles applied to code
highlightedNumbers?number[](Optional) Array of line numbers to highlight
languagestringLanguage used by CodeSnippetProps.text
showCopyCodeButton?boolean(Optional) Whether to show button to copy code snippet
showLineNumbers?boolean(Optional) Whether to show line number
textstringCode Snippet text