Copy
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
Something went wrong!
.Markdown
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
Something went wrong!
Markdown
Properties
children
The text content to display and make copyable. This is what users see on the page.
clipboard
Custom text to copy to the clipboard. Use this when you want to display one value but copy a different value.