Gymboard/gymboard-app/src/components/EssentialLink.vue

42 lines
724 B
Vue
Raw Normal View History

2023-01-19 20:12:25 +00:00
<template>
<q-item clickable tag="a" target="_blank" :href="link">
<q-item-section v-if="icon" avatar>
2023-01-19 20:12:25 +00:00
<q-icon :name="icon" />
</q-item-section>
<q-item-section>
<q-item-label>{{ title }}</q-item-label>
<q-item-label caption>{{ caption }}</q-item-label>
</q-item-section>
</q-item>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'EssentialLink',
props: {
title: {
type: String,
required: true,
2023-01-19 20:12:25 +00:00
},
caption: {
type: String,
default: '',
2023-01-19 20:12:25 +00:00
},
link: {
type: String,
default: '#',
2023-01-19 20:12:25 +00:00
},
icon: {
type: String,
default: '',
},
},
2023-01-19 20:12:25 +00:00
});
</script>