Skip to content

Commit

Permalink
feat(#4): add external link icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Aug 7, 2023
1 parent 01843b7 commit eeabf9e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/NavigationCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
>
<CTLink
class="ct-navigation-card__title__link"
:external="linkExternal"
:link="link"
:text="title"
:theme="theme"
icon="right-arrow-2"
:icon="linkIcon"
/>
</CTHeading>

Expand Down Expand Up @@ -90,6 +91,10 @@ export default {
type: String,
default: '#'
},
linkExternal: {
type: Boolean,
default: undefined,
},
summary: {
type: String,
default: undefined,
Expand All @@ -101,7 +106,8 @@ export default {
},
computed: {
hasImage: ({ $scopedSlots, imageSrc }) => imageSrc || $scopedSlots.image
hasImage: ({ $scopedSlots, imageSrc }) => imageSrc || $scopedSlots.image,
linkIcon: ({ linkExternal }) => linkExternal ? 'upper-right-arrow' : 'right-arrow-2',
}
}
</script>

0 comments on commit eeabf9e

Please sign in to comment.