-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat: implement copy button UI (#7698) #7710
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
base: main
Are you sure you want to change the base?
feat: implement copy button UI (#7698) #7710
Conversation
|
@Rajankannaujiya is attempting to deploy a commit to the OpenJS Foundation Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @Rajankannaujiya nice work. Could you sign the CLA? |
Thank you @evenstensberg , I have Signed the CLA. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Rajankannaujiya could you add an example of a code snippet using copy button? |
@evenstensberg Could you tell me where I should write the example? I’m thinking of putting it in src/contents/concepts/output.mdx. Is that the right place? |
|
Just pick one code block you want and lets see if this pr is good or not |
@evenstensberg I added an example of a code snippet using copy button in the src/contents/concepts/output.mdx file. |
Summary
This PR implements a copy button UI for code blocks across the documentation. It enhances user experience by allowing users to quickly copy code snippets with a single click. Additionally, minor updates were made to the mdx-components.js file to ensure proper integration with the new component.
What kind of change does this PR introduce?
Did you add tests for your changes?
Does this PR introduce a breaking change?