useClipboard
Copy string to clipboard.
This is custom React hooks, you need to follow the Basic Rules when you use it.
General
APIs
useClipboard
type UseClipboardOptions = {
onError: Function
}
type CopyResult = {
copy: (text: string) => void
}
const useClipboard = (options?: UseClipboardOptions) => CopyResult
Contributors