Files
chad/client/app/components/AppHeader.vue
2025-12-25 03:51:29 +06:00

31 lines
532 B
Vue

<template>
<div
class="flex items-center justify-between gap-2 border-b-2 border-surface-800 px-3 py-3"
:class="{
'bg-surface-950': !secondary,
'bg-surface-900': secondary,
}"
style="height: 75px;"
>
<slot name="left">
<h1 v-if="!!title">
{{ title }}
</h1>
</slot>
<slot name="right" />
</div>
</template>
<script setup lang="ts">
defineProps<{
title?: string
secondary?: boolean
}>()
defineSlots<{
left: () => unknown
right: () => unknown
}>()
</script>