Files
KanbanGit/resources/js/components/Heading.vue
T
Twyco a46695c2eb
linter / quality (pull_request) Successful in 1m18s
tests / ci (8.4) (pull_request) Successful in 1m54s
Implement Fluid Emerald app redesign
2026-07-18 16:45:54 +02:00

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>