This commit is contained in:
2023-04-29 00:29:25 +02:00
parent 3f9393f09b
commit dc6f10afd8
19 changed files with 1673 additions and 153 deletions

View File

@@ -6,19 +6,10 @@ const props = defineProps<{
</script>
<template>
<a
class="text-decoration-none w-100 d-block"
:class="props.active ? 'link-primary fw-bolder' : 'link-secondary'"
class="mt-1 block w-full cursor-pointer rounded hover:bg-gray-200"
:class="props.active ? 'font-bold text-primary' : 'text-secondary'"
>
<i :class="`bi bi-${props.icon}`" class="me-2" v-if="props.icon"></i
<i :class="`bi bi-${props.icon}`" class="mr-2" v-if="props.icon"></i
><slot></slot>
</a>
</template>
<style scoped lang="scss">
a {
cursor: pointer;
border-radius: var(--bs-border-radius);
}
a:hover {
background-color: var(--bs-gray-300);
}
</style>