Skip to content

Commit

Permalink
Update CardElement.vue :to type
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan authored Jun 21, 2024
1 parent 914aa54 commit 3f12bad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/CardElement.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import type { PropType } from "vue";
import type { RouteLocationRaw } from "vue-router";
defineProps({
/** The title of the card */
Expand All @@ -20,7 +21,7 @@ defineProps({
},
/** Where the card should navigate to. If not set, the card is not clickable */
to: {
type: String,
type: [String, Object] as PropType<RouteLocationRaw>,
required: false,
},
/** The heading level to use, between 1 and 6. This has no effect if the title is not set or the header slot is used. */
Expand Down

0 comments on commit 3f12bad

Please sign in to comment.