elk/components/nav/button/Compose.vue
2025-01-04 17:58:16 +09:00

22 lines
611 B
Vue

<script setup lang="ts">
defineProps<{
activeClass: string
}>()
const hideLabel = useHideBottomNavigationLabel()
</script>
<template>
<NuxtLink
to="/compose"
:aria-label="$t('nav.compose')"
:active-class="activeClass"
flex flex-col items-center place-content-center h-full flex-1 min-w-0
class="coarse-pointer:select-none"
:class="hideLabel ? null : 'gap-1'"
@click="$scrollToTop"
>
<div aria-hidden="true" i-ri:quill-pen-line />
<span v-if="!hideLabel" text-xs overflow-hidden text-ellipsis whitespace-nowrap>{{ $t('nav.compose') }}</span>
</NuxtLink>
</template>