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

Ability to clear the clipboard state

Open srowe0091 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. As the title suggests, it would be nice to be able to clear the clipboard internal state. Currently I have a modal that handles the clipboard and show different button states whenever the button is clicked to copy to clipboard, ex. "Copy to clipboard" -> "Copied" based on the state value has anything.

Describe the solution you'd like A function callback to only clear the internal state variable but leave the clipboard data alone.

srowe0091 avatar Jul 30 '22 02:07 srowe0091

+1 to this

marcellino-ornelas avatar Dec 06 '25 00:12 marcellino-ornelas