Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Nov 8, 2025

Add Copy component documentation

Summary

This PR adds documentation for the new <Copy> component that makes text copyable inline with a click-to-copy button. The component supports an optional clipboard prop to customize what gets copied versus what's displayed.

Changes include:

  • New component documentation page following the established pattern (Usage, Variants, Properties sections)
  • Added to navigation in alphabetical order between Code block and Download
  • Changelog entry for 2025-11-08
  • Fixed Vale style warnings (removed adverb "quickly", replaced "latest" with "current")

Review & Testing Checklist for Human

  • Verify the Copy component exists in the frontend and matches the documented API - this is critical since the documentation is based on Slack message examples, not actual component inspection
  • Test the component functionality end-to-end:
    • Navigate to the Copy component page in the preview deployment
    • Test that clicking the copy button works for basic usage
    • Test that the clipboard prop correctly overrides the copied content
    • Verify the component renders inline as expected
  • Fix Vale warnings in changelog: The changelog file (2025-11-08.mdx) still contains "quickly" and "latest" which trigger Vale warnings. These should be updated to match the fixes in the main component page.
  • Consider updating example values: The clipboard="foobopbar" example is a placeholder from the Slack message. Consider whether a more realistic example would be better (e.g., copying a full command while displaying abbreviated text).
  • Verify navigation and links: Check that the component appears correctly in the sidebar navigation and that the changelog link works.

Notes

- Add new Copy component page with usage examples and properties
- Add Copy component to navigation in docs.yml
- Add changelog entry for 2025-11-08

Co-Authored-By: Catherine Deskur <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

description: 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 quickly copy version numbers, commands, API keys, or other text snippets without selecting and copying manually.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Adverbs] Remove 'quickly' if it's not important to the meaning of the statement.


<div className="highlight-frame">
<div className="highlight-frame-content">
Use the Fern CLI to build and consume REST APIs. The latest version is <Copy>v2.0</Copy>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'REST' has no definition.


<div className="highlight-frame">
<div className="highlight-frame-content">
Use the Fern CLI to build and consume REST APIs. The latest version is <Copy>v2.0</Copy>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[FernStyles.Current] Avoid time-relative terms like 'latest' that become outdated

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

- Remove adverb 'quickly' from intro paragraph
- Replace 'latest' with 'current' to avoid time-relative term

Co-Authored-By: Catherine Deskur <[email protected]>

<div className="highlight-frame">
<div className="highlight-frame-content">
Use the Fern CLI to build and consume REST APIs. The current version is <Copy>v2.0</Copy>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'REST' has no definition.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

@@ -0,0 +1,12 @@
## New Copy component for inline copyable text

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Adverbs] Remove 'quickly' if it's not important to the meaning of the statement.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

@github-actions github-actions bot merged commit cc098ae into main Nov 8, 2025
2 checks passed
@github-actions github-actions bot deleted the devin/1762626362-copy-component-docs branch November 8, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants