vscodium.github.io/components/section-header.tsx
2025-05-07 02:06:17 +02:00

20 lines
563 B
TypeScript
Executable File

type SectionHeaderProperties = {
title: string;
description?: string;
};
export function SectionHeader({ title, description }: SectionHeaderProperties) {
return (
<div className='flex flex-col items-center justify-center space-y-4 text-center'>
<div className='space-y-2'>
<h2 className='text-3xl font-bold tracking-tighter sm:text-5xl'>{title}</h2>
{description && (
<p className='max-w-[900px] text-muted-foreground md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed'>
{description}
</p>
)}
</div>
</div>
);
}