Files
dredgenews/resources/js/components/PageCard.vue
T
dredgy 439139a057
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
Done
2026-07-04 23:09:00 +10:00

37 lines
801 B
Vue

<script setup lang="ts">
withDefaults(
defineProps<{
maxWidth?: string | number;
centered?: boolean;
}>(),
{
maxWidth: 480,
centered: true,
},
);
</script>
<template>
<VCard
variant="outlined"
class="pa-6"
:class="{ 'mx-auto': centered }"
:style="{
maxWidth: typeof maxWidth === 'number' ? `${maxWidth}px` : maxWidth,
}"
>
<div v-if="$slots.header" class="mb-6">
<slot name="header" />
</div>
<slot />
<template v-if="$slots.footer">
<VDivider class="my-6" />
<div class="text-body-2 text-medium-emphasis text-center">
<slot name="footer" />
</div>
</template>
</VCard>
</template>