react-use-clipboard icon indicating copy to clipboard operation
react-use-clipboard copied to clipboard

Add option for passing in text to copy in `setCopied` rather than `useClipboard`

Open danoc opened this issue 4 years ago • 3 comments

This is based on #39 but keeps the API backwards compatible, providing two options to supply the text that should be copied.

Fixes #37.

danoc avatar Jul 08 '21 20:07 danoc

🦋 Changeset detected

Latest commit: d7c38a728a5bc9c0a2b8b23e3f4b19ae572ce2cf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-use-clipboard Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Jul 08 '21 20:07 changeset-bot[bot]

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

codesandbox-ci[bot] avatar Jul 08 '21 20:07 codesandbox-ci[bot]

@danoc any chance we could get this merged?

sachaw avatar Jan 14 '22 02:01 sachaw