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

28 lines
853 B
Vue
Raw Normal View History

2021-07-04 16:56:07 +02:00
<template>
2023-05-20 02:38:38 +02:00
<div class="h-16 px-6 flex items-center justify-between border-b border-solid border-gray-600 group-[.is-bright]:border-gray-500">
<div class="flex items-center space-x-2">
<slot name="before-title"></slot>
<page-title>{{ 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 02:38:38 +02:00
<div class="flex items-center space-x-2 ml-2">
2023-05-20 01:45:43 +02:00
<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>