cineclub-site/front/components/buttonIcon.vue

16 lines
407 B
Vue

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