Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pietrofxq opened this issue Dec 19, 2023 · 2 comments
Open

Comments

@pietrofxq
Copy link

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.

@thetejasmagade
Copy link

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

geanify added a commit to geanify/react-use that referenced this issue Feb 19, 2024
@geanify
Copy link

geanify commented Feb 19, 2024

#2542

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants