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.
1 parent db87295 commit 8725edfCopy full SHA for 8725edf
apps/webapp/app/components/primitives/CopyableText.tsx
@@ -8,10 +8,12 @@ export function CopyableText({
8
value,
9
copyValue,
10
className,
11
+ asChild,
12
}: {
13
value: string;
14
copyValue?: string;
15
className?: string;
16
+ asChild?: boolean;
17
}) {
18
const [isHovered, setIsHovered] = useState(false);
19
const { copy, copied } = useCopy(copyValue ?? value);
@@ -50,6 +52,7 @@ export function CopyableText({
50
52
content={copied ? "Copied!" : "Copy"}
51
53
className="font-sans"
54
disableHoverableContent
55
+ asChild={asChild}
56
/>
57
</span>
58
0 commit comments