We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useClipboard
1 parent a5ee89f commit b51078dCopy full SHA for b51078d
.changeset/seven-buckets-draw.md
@@ -0,0 +1,5 @@
1
+---
2
+"react-use-clipboard": patch
3
4
+
5
+Rename the default export function to `useClipboard` instead of `useCopyClipboard` for consistency with the package name.
src/index.tsx
@@ -9,7 +9,7 @@ interface IOptions {
9
successDuration?: number;
10
}
11
12
-export default function useCopyClipboard(
+export default function useClipboard(
13
text: string,
14
options?: IOptions
15
): [boolean, () => void] {
0 commit comments