Files
release11-tools/Frontend/src/components/sidebar/SidebarToolLinkComponent.vue
Adam Bem 5febb10d22 File uploading and fixes (#261)
Reviewed-on: #261
Reviewed-by: Mikolaj Widla <widlam@noreply.example.com>
Co-authored-by: Adam Bem <adam.bem@zoho.eu>
Co-committed-by: Adam Bem <adam.bem@zoho.eu>
2023-11-06 11:17:42 +01:00

22 lines
522 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 {
font-weight: 600;
}
</style>