Spaces:
Sleeping
Sleeping
File size: 696 Bytes
ec474ac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | export default function Heading({
title,
description,
variant = 'default',
}: {
title: string;
description?: string;
variant?: 'default' | 'small';
}) {
return (
<header className={variant === 'small' ? '' : 'mb-8 space-y-0.5'}>
<h2
className={
variant === 'small'
? 'mb-0.5 text-base font-medium'
: 'text-xl font-semibold tracking-tight'
}
>
{title}
</h2>
{description && (
<p className="text-sm text-muted-foreground">{description}</p>
)}
</header>
);
}
|