Skip to content

Commit a94bb3a

Browse files
committed
Create SchemaInfoIcon with an icon that points to the schema guide
1 parent 81b9614 commit a94bb3a

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

src/components/SchemaInfoIcon.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<a v-bind:href="'https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md#' + section">
3+
<q-icon name="ion-information-circle-outline" />
4+
</a>
5+
</template>
6+
7+
<script lang="ts">
8+
import { defineComponent } from 'vue'
9+
10+
export default defineComponent({
11+
name: 'SchemaInfoIcon',
12+
props: {
13+
section: {
14+
type: String,
15+
required: true
16+
}
17+
}
18+
})
19+
</script>
20+
21+
<style scoped>
22+
a {
23+
text-decoration: none;
24+
}
25+
</style>

0 commit comments

Comments
 (0)