25 lines
556 B
Vue
25 lines
556 B
Vue
<script setup>
|
|
import { computed } from "vue";
|
|
import { Link } from "@inertiajs/vue3";
|
|
|
|
const props = defineProps({
|
|
href: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
active: {
|
|
type: Boolean,
|
|
},
|
|
});
|
|
|
|
const classes = computed(
|
|
() =>
|
|
"border border-zinc-900 block w-full pl-3 pr-4 py-2 text-left text-base font-medium text-zinc-100 hover:border-sky-600 hover:ring-sky-600 transition duration-150 ease-in-out"
|
|
);
|
|
</script>
|
|
|
|
<template>
|
|
<Link :href="href" :class="classes">
|
|
<slot />
|
|
</Link>
|
|
</template>
|