Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to active HeaderLinks First level when it has some children #1763

Open
850036165 opened this issue May 8, 2024 · 1 comment
Open

How to active HeaderLinks First level when it has some children #1763

850036165 opened this issue May 8, 2024 · 1 comment
Labels
pro question Further information is requested

Comments

@850036165
Copy link

Description

I try to use HeaderLinks to to made a navbar but when i went to a sub route, when i check the offical website it is good but when i use myself it can not activate the father route.
image
image

<script setup lang="ts"> const links = [{ label: 'Docs', icon: 'i-heroicons-book-open', to: '/getting-started' }, { label: 'Pro', icon: 'i-heroicons-square-3-stack-3d', to: '/pro', children: [{ label: 'Pricing', to: '/pro/pricing', icon: 'i-heroicons-ticket', description: 'A simple pricing, for solo developers or teams.' }, { label: 'Templates', to: '/pro/templates', icon: 'i-heroicons-computer-desktop', description: 'Get started with one of our official templates.' }] }, { label: 'Releases', icon: 'i-heroicons-rocket-launch', to: '/releases' }] </script>
@850036165 850036165 added the question Further information is requested label May 8, 2024
Copy link
Member

Have you defined the docs route as parent? https://nuxt.com/docs/guide/directory-structure/pages#nested-routes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pro question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants