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 1ec84c1 commit 0b70397Copy full SHA for 0b70397
src/client/theme-default/components/VPButton.vue
@@ -7,7 +7,7 @@ interface Props {
7
tag?: string
8
size?: 'medium' | 'big'
9
theme?: 'brand' | 'alt' | 'sponsor'
10
- text: string
+ text?: string
11
href?: string
12
target?: string;
13
rel?: string;
@@ -35,7 +35,7 @@ const component = computed(() => {
35
:target="props.target ?? (isExternal ? '_blank' : undefined)"
36
:rel="props.rel ?? (isExternal ? 'noreferrer' : undefined)"
37
>
38
- {{ text }}
+ <slot>{{ text }}</slot>
39
</component>
40
</template>
41
0 commit comments