From b0ada303c4aa7384758e139ff8f81fb03225865f Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:55 +0530 Subject: [PATCH] feat: add copy field --- app/components/ui/copy-field.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app/components/ui/copy-field.tsx diff --git a/app/components/ui/copy-field.tsx b/app/components/ui/copy-field.tsx new file mode 100644 index 0000000..723c5e8 --- /dev/null +++ b/app/components/ui/copy-field.tsx @@ -0,0 +1,16 @@ +import { Button } from '~/components/ui/button'; +import { Text } from '~/components/ui/text'; +import { copyToClipboard } from '~/lib/browser'; + +export function CopyField({ value, label }: { value: string; label: string }) { + return ( +
+ + {value} + + +
+ ); +}