mealie/frontend/components/global/BaseCardSectionTitle.vue
Arsène Reymond 084f99b0de
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Docker Nightly Production / Backend Server Tests (push) Waiting to run
Docker Nightly Production / Frontend Tests (push) Waiting to run
Docker Nightly Production / Build Package (push) Waiting to run
Docker Nightly Production / Build Tagged Release (push) Blocked by required conditions
Docker Nightly Production / Notify Discord (push) Blocked by required conditions
Release Drafter / ✏️ Draft release (push) Waiting to run
fix: Nuxt3 upgrades UI fixes & improvements (#5589)
2025-06-28 15:59:58 +02:00

49 lines
824 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"
size="small"
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="mt-1 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>