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 1de09f1 commit a1d7791Copy full SHA for a1d7791
src/components/UseCaseCard.vue
@@ -38,7 +38,7 @@
38
rel="noreferrer"
39
>
40
<Icon :icon="demoIcon" height="18" />
41
- {{ demoLabel || 'Try Live Demo' }}
+ {{ demoLabel }}
42
</Button>
43
<Button
44
v-if="githubUrl"
@@ -49,7 +49,7 @@
49
variant="secondary"
50
51
<Icon icon="mdi:github" height="18" />
52
- {{ githubLabel || 'View Code' }}
+ {{ githubLabel }}
53
54
</div>
55
@@ -74,5 +74,8 @@ interface Props {
74
githubLabel?: string;
75
}
76
77
-defineProps<Props>();
+withDefaults(defineProps<Props>(), {
78
+ demoLabel: 'Try Live Demo',
79
+ githubLabel: 'View Code',
80
+});
81
</script>
0 commit comments