Reinitialized commit. Update and actors overview with some filters.
This commit is contained in:
21
components/link/link.vue
Normal file
21
components/link/link.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<a
|
||||
:class="{ active: pageContext.urlPathname === $attrs.href || active }"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<slot />
|
||||
</a>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { inject } from 'vue';
|
||||
|
||||
defineProps({
|
||||
active: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
});
|
||||
|
||||
const pageContext = inject('pageContext');
|
||||
</script>
|
||||
Reference in New Issue
Block a user