knowyt/client/src/components/admin/AdminTile.vue
2022-03-25 11:31:00 +01:00

36 lines
561 B
Vue

<template>
<div class="admin-tile">
<div v-if="title" class="admin-tile__title">
{{ title }}
<slot name="headerAction" />
</div>
<div class="admin-tile__body">
<slot />
</div>
</div>
</template>
<script>
export default {
props: ['title'],
}
</script>
<style lang="scss">
.admin-tile {
min-width: 240px;
margin: 16px;
&__title {
font-size: 32px;
font-family: Dosis;
border-bottom: 1px solid #ffffff;
margin-bottom: 16px;
}
&__body {
font-family: Dosis;
font-size: 18px;
}
}
</style>