2023-12-09 15:47:03 +01:00
|
|
|
<template>
|
2024-04-15 19:39:03 +02:00
|
|
|
<div
|
|
|
|
|
class="flex flex-col w-full bg-white rounded-lg shadow"
|
|
|
|
|
:class="{ 'px-4 py-8 sm:px-6 md:px-8 lg:px-10': padding }"
|
2023-12-09 15:47:03 +01:00
|
|
|
>
|
2024-04-15 19:39:03 +02:00
|
|
|
<div
|
|
|
|
|
v-if="title"
|
|
|
|
|
class="self-center mb-6 text-xl font-light text-gray-900 sm:text-3xl font-bold dark:text-white"
|
|
|
|
|
>
|
2023-12-09 15:47:03 +01:00
|
|
|
{{ title }}
|
|
|
|
|
</div>
|
|
|
|
|
<slot />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
2024-04-15 19:39:03 +02:00
|
|
|
name: "Card",
|
2023-12-09 15:47:03 +01:00
|
|
|
|
|
|
|
|
props: {
|
|
|
|
|
padding: {
|
|
|
|
|
type: Boolean,
|
2024-04-15 19:39:03 +02:00
|
|
|
default: true,
|
2023-12-09 15:47:03 +01:00
|
|
|
},
|
|
|
|
|
title: {
|
|
|
|
|
type: String,
|
2024-04-15 19:39:03 +02:00
|
|
|
default: null,
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-12-09 15:47:03 +01:00
|
|
|
}
|
|
|
|
|
</script>
|