react-use
react-use copied to clipboard
useCopyToClipboard: accept options object to pass to copy-to-clipboard
Is your feature request related to a problem? Please describe.
The function exported by copy-to-clipboard
library takes a second options parameter, that allows to change the MIME type or add a custom message. Currently the useCopyToClipboard
hooks does not forward this option object.
Describe the solution you'd like
The hook should accept and pass the options object to the copy-to-clipboard
function call.
Hey @pietrofxq 👋, can you explain in brief or share some related links? I'm not able to understand it.
https://github.com/streamich/react-use/pull/2542