> ## Documentation Index
> Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CopyButton

> Useful if you have any IDs or other details you want to copy for use in messages or outside of Plain.

<Frame>
  <img src="https://mintcdn.com/plain/EjhjILX5S36Y2AF-/public/images/ui-component-copy-button.png?fit=max&auto=format&n=EjhjILX5S36Y2AF-&q=85&s=5bd714d7543fdbf68cd0fcaaa083e8c4" alt="Example copy button" width="1664" height="300" data-path="public/images/ui-component-copy-button.png" />
</Frame>

A copy button has the following properties:

* `copyButtonTooltipLabel` (optional): the text that should be displayed on hover. Defaults to the value if not
  provided.
* `copyButtonValue`: the value that should be copied to the user's clipboard after clicking the button

For example:

<Snippet file="graphql/ui-copy-button.mdx" />
