diff --git a/ui/components/ui/code-snippet/code-snippet.tsx b/ui/components/ui/code-snippet/code-snippet.tsx index 9440b500e6..313787d48c 100644 --- a/ui/components/ui/code-snippet/code-snippet.tsx +++ b/ui/components/ui/code-snippet/code-snippet.tsx @@ -23,6 +23,8 @@ interface CodeSnippetProps { formatter?: (value: string) => string; /** Enable multiline display (disables truncation, enables word wrap) */ multiline?: boolean; + /** Remove background and border */ + transparent?: boolean; /** Custom aria-label for the copy button */ ariaLabel?: string; } @@ -34,6 +36,7 @@ export const CodeSnippet = ({ hideCopyButton = false, icon, formatter, + transparent = false, multiline = false, ariaLabel = "Copy to clipboard", }: CodeSnippetProps) => { @@ -86,8 +89,15 @@ export const CodeSnippet = ({ return (