feat [front]: easy button

This commit is contained in:
Alice 2022-07-11 01:24:47 +02:00
parent ff485576ca
commit 5592c1e2fc

View 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>