1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-19 05:09:40 +02:00
mealie/frontend/components/global/BaseCardSectionTitle.vue
Hoa (Kyle) Trinh c24d532608
feat: Migrate to Nuxt 3 framework (#5184)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
2025-06-19 17:09:12 +00:00

48 lines
798 B
Vue

<template>
<v-card
color="background"
flat
class="pb-2"
:class="{
'mt-8': section,
}"
>
<v-card-title class="text-h5 pl-0 py-0" style="font-weight: normal;">
<v-icon
v-if="icon"
start
>
{{ icon }}
</v-icon>
{{ title }}
</v-card-title>
<v-card-text
v-if="$slots.default"
class="pt-2 pl-0"
>
<p class="pb-0 mb-0">
<slot />
</p>
</v-card-text>
<v-divider class="mb-3" />
</v-card>
</template>
<script lang="ts">
export default defineNuxtComponent({
props: {
title: {
type: String,
required: true,
},
icon: {
type: String,
default: "",
},
section: {
type: Boolean,
default: false,
},
},
});
</script>