Skip to content

Commit

Permalink
feat: create DownloadButton vue file
Browse files Browse the repository at this point in the history
  • Loading branch information
plvzfq-rit committed Nov 12, 2024
1 parent 4e41c33 commit f51f078
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions components/DownloadButton.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<n-button
type="primary"
size="large"
style="height: 3.2em"
>
<template #icon>
<n-icon><Icon name="material-symbols:download"/></n-icon>
</template>
<a
class="text-2xl"
href="{{ href }}"
>{{ text }}</a
>
</n-button>
</template>
<script setup lang="ts">
defineProps({
text: {
type: String,
default: "",
},
href: {
type: String,
default: "",
}
})
</script>

0 comments on commit f51f078

Please sign in to comment.