contexted link highlight + adjust prettier
This commit is contained in:
@@ -9,6 +9,7 @@ const props = defineProps<{
|
||||
class="mt-1 block w-full cursor-pointer rounded hover:bg-gray-200 active:bg-primary active:text-primary-content"
|
||||
:class="props.active ? 'font-bold text-primary' : 'text-secondary'"
|
||||
>
|
||||
<i :class="props.icon" class="mr-2" v-if="props.icon"></i><slot></slot>
|
||||
<i :class="props.icon" class="mr-2" v-if="props.icon"></i>
|
||||
<slot></slot>
|
||||
</a>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user