+ Use the CopyButton
component to add copy-to-clipboard
+ functionality to your highlighted code blocks.
+
+ The button is positioned at the top-right of the highlight component by + default and shows visual feedback when copying. +
+
+ You can provide custom content using the default slot, which receives an isCopied
boolean to help customize the display.
+
Customize the button content using the default slot:
++ Provide a custom copy function to replace the default clipboard API: +
+