tethys.backend/resources/js/Components/NotificationBarInCard.vue

22 lines
484 B
Vue
Raw Normal View History

2023-03-03 15:54:28 +00:00
<script setup>
import { colorsBgLight } from '@/colors.js';
defineProps({
color: {
type: String,
required: true,
},
isPlacedWithHeader: {
type: Boolean,
},
2023-03-03 15:54:28 +00:00
});
</script>
<template>
<div class="flex flex-col mb-6 -mt-6 -mr-6 -ml-6 animate-fade-in">
<div :class="[colorsBgLight[color], { 'rounded-t-xl': !isPlacedWithHeader }]" class="flex flex-col p-6 transition-colors">
<slot />
</div>
</div>
2023-03-03 15:54:28 +00:00
</template>