Skip to content

Commit df09e53

Browse files
authored
Merge pull request #3 from shwilliam/master
Allow slot syntax
2 parents 215df5e + d5373d0 commit df09e53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/skip-to.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<template>
2-
<a class="vue-skip-to" :href="to" :tabindex="tabindex" v-text="text"></a>
2+
<a class="vue-skip-to" :href="to" :tabindex="tabindex">
3+
<slot>{{ text }}</slot>
4+
</a>
35
</template>
46

57
<script>

0 commit comments

Comments
 (0)