ADD: Components
Teaser, Card
This commit is contained in:
parent
8943512328
commit
c8e4bf4a14
8 changed files with 127 additions and 48 deletions
15
app/components/Card.vue
Normal file
15
app/components/Card.vue
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue