feat [front]: easy button
This commit is contained in:
parent
ff485576ca
commit
5592c1e2fc
1 changed files with 16 additions and 0 deletions
16
front/components/buttonIcon.vue
Normal file
16
front/components/buttonIcon.vue
Normal file
|
@ -0,0 +1,16 @@
|
|||
<template>
|
||||
<button class="button" :aria-label="label">
|
||||
<v-icon :name="icon" class="mr-2" scale="0.83" />
|
||||
<template v-if="!isShort">{{ label }}</template>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps({
|
||||
label: { type: String, required: true },
|
||||
icon: { type: String, default: null },
|
||||
isShort: { type: Boolean, default: false },
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="sass"></style>
|
Loading…
Reference in a new issue