react-icons / react-icons/react-icons

[Feature]: Add copy to clipboard button to code blocks

Open
#901 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

preview-site(low priority)
Dominant language
TypeScript
Stars
12.7k
Forks
809
PR merge metrics
No merged PRs in 30d

Description

Describe

Currently, there is no feature to copy the import icon code.

Solution

Adding a "Copy to Clipboard" button to the rightmost would improve the user experience.

Screenshot 2024-01-15 at 2 00 37 PM
Minimal sample repository URL

No response

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file or test; start by locating the code-block or import-icon rendering used by the project and review the attached screenshot for the intended placement. Done means the rightmost control copies the displayed import icon code to the clipboard and works with the relevant code blocks.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.