adrema/resources/js/components/page/Header.vue

28 lines
842 B
Vue
Raw Normal View History

2021-07-04 16:56:07 +02:00
<template>
2023-05-20 01:45:43 +02:00
<div class="h-16 px-6 flex justify-between items-center border-b border-solid border-gray-600 group-[.is-bright]:border-gray-500">
<slot name="before-title"></slot>
2021-07-04 16:56:07 +02:00
<div class="flex items-center">
2023-05-20 01:45:43 +02:00
<page-title class="mr-2">{{ title }}</page-title>
2023-05-20 01:12:53 +02:00
<slot name="toolbar"></slot>
2021-07-04 16:56:07 +02:00
</div>
2023-05-20 01:45:43 +02:00
<div class="flex items-center ml-4">
<a href="#" v-if="$listeners.close" @click.prevent="$emit('close')" class="btn label btn-primary-light icon">
2022-02-12 15:22:22 +01:00
<svg-sprite class="w-3 h-3" src="close"></svg-sprite>
2021-07-04 16:56:07 +02:00
</a>
2023-05-20 01:45:43 +02:00
<slot name="right"></slot>
2021-07-04 16:56:07 +02:00
</div>
</div>
</template>
<script>
export default {
props: {
title: {
2022-12-04 23:40:35 +01:00
default: function () {
return '';
},
},
},
2021-07-04 16:56:07 +02:00
};
</script>