adrema/resources/js/views/member/Box.vue

28 lines
587 B
Vue
Raw Normal View History

2022-11-22 00:37:34 +01:00
<template>
<section class="bg-gray-800 p-3 rounded-lg flex flex-col">
2022-11-22 01:55:57 +01:00
<heading class="col-span-full" v-if="heading">{{ heading }}</heading>
<main :class="{'mt-3': heading, 'containerClass': true}">
2022-11-22 00:37:34 +01:00
<slot></slot>
</main>
</section>
</template>
<script>
export default {
props: {
heading: {
type: String,
},
containerClass: {
default: function () {
return '';
},
},
},
components: {
heading: () => import('./Heading'),
},
};
</script>