adrema/resources/js/layouts/_VLink.vue

19 lines
443 B
Vue
Raw Normal View History

2021-04-11 00:57:47 +02:00
<template>
2022-01-02 12:50:25 +01:00
<Link class="flex text-white py-2 px-3 rounded-lg hover:bg-gray-600" :href="href" :class="{'bg-gray-700': $page.props.menu == menu}">
2022-02-12 15:22:22 +01:00
<svg-sprite class="text-white w-6 h-6 mr-4" :src="icon"></svg-sprite>
2021-04-11 00:57:47 +02:00
<span class="font-semibold">
<slot></slot>
</span>
2022-01-02 12:50:25 +01:00
</Link>
2021-04-11 00:57:47 +02:00
</template>
<script>
export default {
props: {
href: {},
icon: {},
menu: {},
}
};
</script>