28 lines
705 B
Vue
28 lines
705 B
Vue
<script setup lang="ts">
|
|
import type { HeadingProps } from '@/types';
|
|
|
|
withDefaults(defineProps<HeadingProps>(), {
|
|
variant: 'default',
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<header :class="variant === 'small' ? '' : 'space-y-1.5'">
|
|
<h2
|
|
:class="
|
|
variant === 'small'
|
|
? 'mb-0.5 text-base font-semibold tracking-tight'
|
|
: 'text-2xl font-semibold tracking-[-0.025em] sm:text-[1.75rem]'
|
|
"
|
|
>
|
|
{{ title }}
|
|
</h2>
|
|
<p
|
|
v-if="description"
|
|
class="text-muted-foreground max-w-3xl text-sm leading-6"
|
|
>
|
|
{{ description }}
|
|
</p>
|
|
</header>
|
|
</template>
|