Files
test_polis/laravel/resources/js/components/heading.tsx
2026-02-04 23:23:42 +07:00

27 lines
696 B
TypeScript

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