From 852c25484b878177e9e9f74efc3003d1db82b239 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:49 +0530 Subject: [PATCH] feat: add text pair component --- app/components/ui/text-pair.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/components/ui/text-pair.tsx diff --git a/app/components/ui/text-pair.tsx b/app/components/ui/text-pair.tsx new file mode 100644 index 0000000..9ae6ed9 --- /dev/null +++ b/app/components/ui/text-pair.tsx @@ -0,0 +1,19 @@ +import { Text } from '~/components/ui/text'; +import { cn } from '~/lib/utils'; + +interface TextPairProps { + title: string; + meta: string; + as?: 'p' | 'h3'; + className?: string; +} + +// A truncating title with a muted caption underneath +export function TextPair({ title, meta, as = 'p', className }: TextPairProps) { + return ( +
+ {title} + {meta} +
+ ); +}