You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/content/3.api/2.components/4.nuxt-link.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,8 @@ In this example, we use `<NuxtLink>` with `target`, `rel`, and `noRel` props.
78
78
-**replace**: Works the same as [Vue Router's `replace` prop](https://router.vuejs.org/api/#replace) on internal links
79
79
-**ariaCurrentValue**: An `aria-current` attribute value to apply on exact active links. Works the same as [Vue Router's `aria-current-value` prop](https://router.vuejs.org/api/#aria-current-value) on internal links
80
80
-**external**: Forces the link to be considered as external (`true`) or internal (`false`). This is helpful to handle edge-cases
81
+
-**prefetch** and **noPrefetch**: Whether to enable prefetching assets for links that enter the view port.
82
+
-**prefetchedClass**: A class to apply to links that have been prefetched.
81
83
-**custom**: Whether `<NuxtLink>` should wrap its content in an `<a>` element. It allows taking full control of how a link is rendered and how navigation works when it is clicked. Works the same as [Vue Router's `custom` prop](https://router.vuejs.org/api/#custom)
82
84
83
85
::alert{icon=👉}
@@ -107,12 +109,14 @@ defineNuxtLink({
107
109
externalRelAttribute?:string;
108
110
activeClass?:string;
109
111
exactActiveClass?:string;
112
+
prefetchedClass?:string;
110
113
}) =>Component
111
114
```
112
115
113
116
-**componentName**: A name for the defined `<NuxtLink>` component.
114
117
-**externalRelAttribute**: A default `rel` attribute value applied on external links. Defaults to `"noopener noreferrer"`. Set it to `""` to disable
115
118
-**activeClass**: A default class to apply on active links. Works the same as [Vue Router's `linkActiveClass` option](https://router.vuejs.org/api/#linkactiveclass). Defaults to Vue Router's default (`"router-link-active"`)
116
119
-**exactActiveClass**: A default class to apply on exact active links. Works the same as [Vue Router's `linkExactActiveClass` option](https://router.vuejs.org/api/#linkexactactiveclass). Defaults to Vue Router's default (`"router-link-exact-active"`)
120
+
-**prefetchedClass**: A default class to apply to links that have been prefetched.
0 commit comments