This <CopyButton />
component allows you to copy text to the clipboard on click.
There are two main ways to use the <CopyButton />
component:
- Icon-only button
- Text + icon button
The main difference between the two is that the icon-only button is a standalone button, while the text + icon button is a button that wraps around the text you want to copy, letting you click either the text or the icon to copy the text.