pub fn CopyPageButton(_: CopyPageButtonProps) -> ElementExpand description
“Copy page” button for MDX documentation pages.
Copies the page’s raw Markdown source to the clipboard — the “copy page for LLMs” pattern. On success it swaps to a “Copied” state (check icon) for ~2 seconds, then reverts.
The Markdown is handed to the clipboard via document::eval argument
passing (eval.send), never string-interpolated into the script, so
backticks and quotes in the source can’t break the JS.
§Props
content: Raw Markdown source of the current page.
§Stable public classes
Carries dk-copy-page so theme presets can target the button.
§Props
For details, see the props struct definition.
content:String