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

useCopyToClipboard: accept options object to pass to copy-to-clipboard

Open pietrofxq opened this issue 1 year ago • 2 comments

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.

pietrofxq avatar Dec 19 '23 16:12 pietrofxq

Hey @pietrofxq 👋, can you explain in brief or share some related links? I'm not able to understand it.

thetejasmagade avatar Jan 20 '24 17:01 thetejasmagade

https://github.com/streamich/react-use/pull/2542

geanify avatar Feb 19 '24 15:02 geanify