elk/components/nav/button/Home.vue
2025-01-01 23:49:00 +09:00

15 lines
522 B
Vue

<script setup lang="ts">
defineProps<{
activeClass: string
}>()
const userSettings = useUserSettings()
const hideLabel = getPreferences(userSettings.value, 'hideBottomNavLabel')
</script>
<template>
<NuxtLink to="/home" :aria-label="$t('nav.home')" :active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
<div i-ri:home-5-line />
<span v-if="!hideLabel" text-xs>{{ $t('nav.home') }}</span>
</NuxtLink>
</template>