tailwindcss.com
tailwindcss.com copied to clipboard
Fix/feature copy to clipboard #2271
This pull request adds Copy button to all code snippets in the tailwindcss.com documentation. Here are some screen shorts.
Before:
After:
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| tailwindcss-com | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 15, 2025 3:29pm |
Okay, but with this, we're also copying the Shiki comments to the clipboard, and it takes more extra work to achieve the desired result - as you've seen in the previous PRs.
Dear sir, thanks to address my issue. I will try to resolve the issue. Have a good day!
Dear Sir, my code no longer copies the Shiki comments to the clipboard.
I don't think this covers all comments and all cases - perhaps the other PR had the same solution?
I have tested all the code examples in the documentation as thoroughly as possible and obtained the correct output in each case. I would be grateful if you could kindly point out any specific case that I may have overlooked.
For example, here you remove an empty line:
- https://tailwindcss-5j4iy21rc-tailwindlabs.vercel.app/docs/upgrade-guide#using-vite
Or, in the case of diffs, you also copy the deleted lines to the clipboard.
I'm building off of #2279 so going to close this one — thanks though!