first commit
This commit is contained in:
26
laravel/resources/js/components/heading.tsx
Normal file
26
laravel/resources/js/components/heading.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user