> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiJhZmVmOTFhNS1mNjVmLTRkNjYtODgzZS00YzY0YTA4YTVmNGIiLCJleHAiOjE3ODQxOTExMjcsImlhdCI6MTc4NDE5MDgyN30.zP78RYdgQtY2BYebkizOWBXGDnR6DI4fHEeqzqkzZkM
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

# Copy

> Make text copyable with a click-to-copy button.

The `<Copy>` component makes text copyable with a single click. Use it inline to allow readers to copy version numbers, commands, API keys, or other text snippets without selecting and copying manually.

## Usage

Use the Fern CLI to build and consume REST APIs. The current version is v2.0.

```jsx Markdown
Use the Fern CLI to build and consume REST APIs. The current version is <Copy>v2.0</Copy>.
```

## Variants

### Custom clipboard content

Use the `clipboard` prop to display one value while copying a different value to the clipboard. This is useful when you want simplify commands, versions, or URLs for readability while copying complete values.

Install the CLI using npm install

```jsx Markdown
Install the CLI using <Copy clipboard="npm install -g bamboo-leaf-cli">npm install</Copy>
```

## Properties

The text content to display and make copyable. This is what users see on the page.

Custom text to copy to the clipboard. Use this when you want to display one value but copy a different value.