Replies: 2 comments 3 replies
-
There is currently this https://github.com/shadcn-ui/ui/blob/main/apps/www/components/copy-button.tsx |
Beta Was this translation helpful? Give feedback.
3 replies
-
I pulled this component into a separate repo with registry support so it's really easy to add to a project |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Minimal component structure to copy data of an element with a button trigger.
Demo structure:
handleCopy
is an optional value in this case, you can do modifications to the content before copying it to the clipboard.Beta Was this translation helpful? Give feedback.
All reactions