react-use-clipboard
react-use-clipboard copied to clipboard
Add option for passing in text to copy in `setCopied` rather than `useClipboard`
This is based on #39 but keeps the API backwards compatible, providing two options to supply the text that should be copied.
Fixes #37.
🦋 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
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.
@danoc any chance we could get this merged?