Skip to content

Commit 0b70397

Browse files
feat(default-theme): make VPButton slottable (#4689)
1 parent 1ec84c1 commit 0b70397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/theme-default/components/VPButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface Props {
77
tag?: string
88
size?: 'medium' | 'big'
99
theme?: 'brand' | 'alt' | 'sponsor'
10-
text: string
10+
text?: string
1111
href?: string
1212
target?: string;
1313
rel?: string;
@@ -35,7 +35,7 @@ const component = computed(() => {
3535
:target="props.target ?? (isExternal ? '_blank' : undefined)"
3636
:rel="props.rel ?? (isExternal ? 'noreferrer' : undefined)"
3737
>
38-
{{ text }}
38+
<slot>{{ text }}</slot>
3939
</component>
4040
</template>
4141

0 commit comments

Comments
 (0)