MarkdownCopyButton
Unpublished development API. This package is under development and is not available as a published release.
The code block's Copy button, for a replacement 'code-block' that draws its own <pre>. Put it
in the same tp-markdown__code element as that <pre>: the chat stylesheet places it at the
element's top inline-end corner and shows it on hover and focus.
import { MarkdownCopyButton } from '@threadplane/react/markdown';Declaration · overload 1
export declare function MarkdownCopyButton(input: {
readonly text: string;
}): import("react/jsx-runtime").JSX.Element;Parameters
{ text }· requiredinput· required{ readonly text: string; }
Returns
import("react/jsx-runtime").JSX.Element