Files
salam e687b4437b
linter / quality (push) Canceled after 0s
tests / ci (8.3) (push) Canceled after 0s
tests / ci (8.4) (push) Canceled after 0s
tests / ci (8.5) (push) Canceled after 0s
first commit
2026-10-06 18:53:03 +02:00

25 lines
575 B
Svelte

<script lang="ts">
let {
title,
description = '',
variant = 'default',
}: {
title: string;
description?: string;
variant?: 'default' | 'small';
} = $props();
</script>
<header class={variant === 'small' ? '' : 'mb-8 space-y-0.5'}>
<h2
class={variant === 'small'
? 'mb-0.5 text-base font-medium'
: 'text-xl font-semibold tracking-tight'}
>
{title}
</h2>
{#if description}
<p class="text-sm text-muted-foreground">{description}</p>
{/if}
</header>