Skip to content

Commit 6b43d87

Browse files
authored
docs(link): add custom prop to samples (#3470)
To use a cusom tag for `router-link`, v4.0.0+ requires the use of the `custom` prop. The `custom` prop is functional, however it is not in the code examples.
1 parent 2e4508a commit 6b43d87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ sidebar: auto
2323
```html
2424
<router-link
2525
to="/about"
26+
custom
2627
v-slot="{ href, route, navigate, isActive, isExactActive }"
2728
>
2829
<NavLink :active="isActive" :href="href" @click="navigate"
@@ -45,6 +46,7 @@ Sometimes we may want the active class to be applied to an outer element rather
4546
<router-link
4647
to="/foo"
4748
v-slot="{ href, route, navigate, isActive, isExactActive }"
49+
custom
4850
>
4951
<li
5052
:class="[isActive && 'router-link-active', isExactActive && 'router-link-exact-active']"

0 commit comments

Comments
 (0)