40 lines
666 B
Vue
40 lines
666 B
Vue
<template>
|
|
<div class="page-title-container">
|
|
<h1 class="page-title">{{ title }}</h1>
|
|
<div class="page-actions" v-if="$slots.actions">
|
|
<slot name="actions"></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
title: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style scoped>
|
|
.page-title-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 1.75rem;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
color: #333;
|
|
}
|
|
|
|
.page-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
</style> |