Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: update analytics tracking

Dillion Vermaaefc9fa2664c
diff --git a/components/copy-button.tsx b/components/copy-button.tsx
index 2dce508d..36d29c30 100644
--- a/components/copy-button.tsx
+++ b/components/copy-button.tsx
@@ -17,7 +17,7 @@ import {
interface CopyButtonProps extends ButtonProps {
value: string;
- src?: string;
+ src: string;
event?: Event["name"];
}
@@ -59,6 +59,7 @@ export function CopyButton({
? {
name: event,
properties: {
+ name: src,
code: value,
},
}