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