I'm trying to override the default AppHeaderLogo component in Docus by placing my own AppHeaderLogo.vue inside the /components directory. However, the default component is still being used and my custom version is never rendered.
Versions
- Docus:
5.12.1
- Nuxt:
4.4.8
What I expected
According to the documentation and standard Nuxt component auto-import/override behavior, placing a component with the same name in the /components directory should override the internal one.
What actually happens
The default AppHeaderLogo from Docus is still being used. My custom component seems to be ignored.
My component
<script setup>
const config = useRuntimeConfig()
const appName = config.public.appName
</script>
<template>
<div class="flex items-center gap-3">
<img src="/icon.svg" alt="Logo" class="h-6 w-auto" />
<span class="font-black text-xl">{{ appName }}</span>
</div>
</template>
<style scoped>
</style>
Steps to reproduce
- Create
components/AppHeaderLogo.vue
- Add custom template as shown above
- Run dev server
- Observe that the header still uses the default logo component
Question
Is there anything specific required to override built-in Docus components like AppHeaderLogo?
For example:
- Is there a naming or registration constraint?
- Or do I need to explicitly register/extend it via config?
I'm trying to override the default
AppHeaderLogocomponent in Docus by placing my ownAppHeaderLogo.vueinside the/componentsdirectory. However, the default component is still being used and my custom version is never rendered.Versions
5.12.14.4.8What I expected
According to the documentation and standard Nuxt component auto-import/override behavior, placing a component with the same name in the
/componentsdirectory should override the internal one.What actually happens
The default
AppHeaderLogofrom Docus is still being used. My custom component seems to be ignored.My component
Steps to reproduce
components/AppHeaderLogo.vueQuestion
Is there anything specific required to override built-in Docus components like
AppHeaderLogo?For example: