svelte-copy
svelte-copy copied to clipboard
copyText method should return success or error
I'm using this on a pre-made component and I do not have access to the underlying element hence, I'm using copyText
That method should return the result or error if the copy isn't successful.