26 lines
614 B
Vue
26 lines
614 B
Vue
<script setup lang="ts">
|
|
import { RouterLink } from 'vue-router';
|
|
const props = defineProps(
|
|
{
|
|
elementContent: { required: false },
|
|
pathTo: { type: String, required: true }
|
|
}
|
|
)
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<RouterLink
|
|
class="w-full text-center py-2 px-4 text-gray-800 transition duration-75 hover:bg-blue-100 dark:text-white dark:hover:bg-slate-600"
|
|
:to="props.pathTo">{{ props.elementContent }}</RouterLink>
|
|
</template>
|
|
|
|
<style>
|
|
.router-link-active {
|
|
<<<<<<< HEAD
|
|
font-weight: 500;
|
|
=======
|
|
font-weight: 600;
|
|
>>>>>>> 307e732608fca31b60027b417412691ff0e1c2f0
|
|
}
|
|
</style> |