ADD: Components

Teaser, Card
This commit is contained in:
webfussel 2025-05-29 13:11:15 +02:00
parent 8943512328
commit c8e4bf4a14
8 changed files with 127 additions and 48 deletions

15
app/components/Card.vue Normal file
View file

@ -0,0 +1,15 @@
<template>
<article class="z-2 card flex-col gap-sm">
<component :is="titleTag ?? 'h3'">{{ title }}</component>
<slot />
</article>
</template>
<script setup lang="ts">
type Props = {
title : string
titleTag ?: 'strong' | 'h3'
}
defineProps<Props>()
</script>