We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed206bb commit 0fb476cCopy full SHA for 0fb476c
app/components/Header/MobileMenu.client.vue
@@ -197,7 +197,7 @@ onUnmounted(deactivate)
197
<NuxtLink
198
v-for="link in group.items"
199
:key="link.name"
200
- :to="link.to?.name"
+ :to="link.to"
201
:href="link.href"
202
:target="link.target"
203
class="flex items-center gap-3 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200"
app/types/navigation.ts
@@ -1,10 +1,10 @@
1
+import type { NuxtLinkProps } from '#app'
2
+
3
export type NavigationLink = {
4
name: string
5
label: string
6
iconClass?: string
- to?: {
- name?: string
7
- }
+ to?: NuxtLinkProps['to'] & { name?: string }
8
href?: string
9
target?: string
10
keyshortcut?: string
0 commit comments