CodeSnippetProps
Home > @backstage/core-components
> CodeSnippetProps
Properties for CodeSnippet()
Signature:
export interface CodeSnippetProps
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
customStyle? | any | (Optional) Custom styles applied to code | |
highlightedNumbers? | number[] | (Optional) Array of line numbers to highlight | |
language | string | Language used by CodeSnippetProps.text | |
showCopyCodeButton? | boolean | (Optional) Whether to show button to copy code snippet | |
showLineNumbers? | boolean | (Optional) Whether to show line number | |
text | string | Code Snippet text |