Daan Meijer 4e9e6dce2a
Some checks failed
linter / quality (push) Failing after 1m1s
tests / ci (8.3) (push) Failing after 49s
tests / ci (8.4) (push) Failing after 1m4s
tests / ci (8.5) (push) Failing after 1m4s
front-end restructuring, chat shows message ownership
2026-06-16 14:13:08 +02:00

23 lines
499 B
Vue

<script setup lang="ts">
type Props = {
title: string;
description?: string;
variant?: 'default' | 'small';
};
withDefaults(defineProps<Props>(), {
variant: 'default',
});
</script>
<template>
<header :class="['c-heading', { 'c-heading--small': variant === 'small' }]">
<h2 class="c-heading__title">
{{ title }}
</h2>
<p v-if="description" class="c-heading__description">
{{ description }}
</p>
</header>
</template>