MarkdownCodeCopyComponent
The code block's Copy button, for a replacement 'code-block' view that draws its own <pre>.
Put it in the same chat-md-code element as that <pre>: the chat stylesheet places it at the
element's top-right corner and shows it on hover and focus.
import { MarkdownCodeCopyComponent } from '@threadplane/chat';Declaration
export declare class MarkdownCodeCopyComponent {
constructor();
readonly text: import("@angular/core").InputSignal<string>;
}Angular template API
Selector: chat-md-code-copy
Inputs
text· requiredstring
Members
Constructor · overload 1
Constructs a new instance of the MarkdownCodeCopyComponent class
constructor();text
The text a click writes to the clipboard.
readonly text: import("@angular/core").InputSignal<string>;