Description
Currently, the CopyToClipboard has no event handlers whatsoever, making it impossible to detect user interaction without resorting to hacks. I have a use case where I'd like to close a popover when the user performs a copy action. It'd also be nice to be able to record those events for analytics, as we can when the user performs virtually any other interaction.
I'd suggest a pair of event handlers named onCopySuccess and onCopyFailure.
Code of Conduct