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} +
+ ); +}