Skip to content

Commit 8725edf

Browse files
committed
Pass up asChild
1 parent db87295 commit 8725edf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/webapp/app/components/primitives/CopyableText.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ export function CopyableText({
88
value,
99
copyValue,
1010
className,
11+
asChild,
1112
}: {
1213
value: string;
1314
copyValue?: string;
1415
className?: string;
16+
asChild?: boolean;
1517
}) {
1618
const [isHovered, setIsHovered] = useState(false);
1719
const { copy, copied } = useCopy(copyValue ?? value);
@@ -50,6 +52,7 @@ export function CopyableText({
5052
content={copied ? "Copied!" : "Copy"}
5153
className="font-sans"
5254
disableHoverableContent
55+
asChild={asChild}
5356
/>
5457
</span>
5558
</span>

0 commit comments

Comments
 (0)