> ## Documentation Index
> Fetch the complete documentation index at: https://plain-docs-orca-916-agent-docs-restructure.mintlify.site/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.

A copy button puts a value on the user's clipboard when clicked, such as an ID they need elsewhere.

<Frame>
  <img src="https://mintcdn.com/plain-docs-orca-916-agent-docs-restructure/iAAItm1tmWvvIVSZ/public/images/ui-component-copy-button.png?fit=max&auto=format&n=iAAItm1tmWvvIVSZ&q=85&s=56d835831448ea27b1798e2b1c604a44" 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" />
