Files
2025-09-09 16:12:02 +02:00

44 lines
962 B
Vue

<script setup lang="ts">
const route = useRoute()
const { desktopLinks } = useHeader()
</script>
<template>
<UHeader :ui="{ left: 'min-w-0' }" class="flex flex-col">
<template #left>
<HeaderLogo />
<VersionMenu />
</template>
<UNavigationMenu :items="desktopLinks" variant="link" />
<template #right>
<ThemePicker />
<UTooltip text="Search" :kbds="['meta', 'K']">
<UContentSearchButton />
</UTooltip>
<UTooltip text="Open on GitHub" class="hidden lg:flex">
<UButton
color="neutral"
variant="ghost"
to="https://github.com/nuxt/ui"
target="_blank"
icon="i-simple-icons-github"
aria-label="GitHub"
/>
</UTooltip>
</template>
<template #body>
<HeaderBody />
</template>
<template v-if="route.path.startsWith('/docs/')" #bottom>
<HeaderBottom />
</template>
</UHeader>
</template>