mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
20 lines
469 B
Vue
20 lines
469 B
Vue
<template>
|
|
<li :class="['nav-item', { active: isActive }]">
|
|
<span v-if="isActive" class="nav-link active" aria-current="page">
|
|
<slot></slot>
|
|
</span>
|
|
<BNavItem v-else :to="href" class="auth-navbar"><slot></slot></BNavItem>
|
|
</li>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { defineProps } from 'vue'
|
|
import { RouterLink, useLink } from 'vue-router'
|
|
|
|
const props = defineProps({
|
|
...RouterLink.props,
|
|
})
|
|
|
|
const { href, isActive } = useLink(props)
|
|
</script>
|