Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a copy button in the playground jsx output header #698

Merged
merged 1 commit into from
Mar 13, 2022
Merged

feat: add a copy button in the playground jsx output header #698

merged 1 commit into from
Mar 13, 2022

Conversation

nikeshparajuli
Copy link
Contributor

Summary

I added a copy button in the playground JSX section so that the generated output can be copied with the click of a button. Please note that the copy feedback is still shown once per session regardless of the copy method, i.e., it works with both the button and/or cmd+c. The button text changes from Copy to Copied! for two seconds and resets back to Copy.

Test plan

image
image

Please advice if anything else is needed for this section.

@vercel
Copy link

vercel bot commented Mar 12, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/gregberge/svgr/8yYGn36bGP7LtfiQX6qbonYtswLH
✅ Preview: https://svgr-git-fork-nikeshparajuli-feat-outputcopybutton-gregberge.vercel.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants