2023-03-03 15:54:28 +00:00
|
|
|
<script setup>
|
2023-10-31 14:38:43 +00:00
|
|
|
import BaseIcon from '@/Components/BaseIcon.vue';
|
2023-03-03 15:54:28 +00:00
|
|
|
|
|
|
|
defineProps({
|
2023-10-31 14:38:43 +00:00
|
|
|
icon: {
|
|
|
|
type: String,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
label: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
isDesktopIconOnly: Boolean,
|
|
|
|
});
|
2023-03-03 15:54:28 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-10-31 14:38:43 +00:00
|
|
|
<slot />
|
|
|
|
<BaseIcon v-if="icon" :path="icon" class="transition-colors" />
|
|
|
|
<span class="px-2 transition-colors" :class="{ 'lg:hidden': isDesktopIconOnly && icon }">{{ label }}</span>
|
2023-03-03 15:54:28 +00:00
|
|
|
</template>
|