22 lines
549 B
Vue
22 lines
549 B
Vue
<script setup lang="ts">
|
|
defineProps<{
|
|
activeClass: string
|
|
}>()
|
|
|
|
const hideLabel = useHideBottomNavigationLabel()
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtLink
|
|
to="/search"
|
|
:aria-label="$t('nav.search')"
|
|
:active-class="activeClass"
|
|
flex flex-col items-center place-content-center h-full flex-1
|
|
class="coarse-pointer:select-none"
|
|
:class="hideLabel ? null : 'gap-1'"
|
|
@click="$scrollToTop"
|
|
>
|
|
<div aria-hidden="true" i-ri:search-line />
|
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.search') }}</span>
|
|
</NuxtLink>
|
|
</template>
|