Files
coolify-examples/laravel-inertia/resources/js/components/TextLink.vue
Andras Bacsai 414135f8a8 laravel inertia
2025-04-01 16:53:52 +02:00

25 lines
537 B
Vue

<script setup lang="ts">
import { Link } from '@inertiajs/vue3';
interface Props {
href: string;
tabindex?: number;
method?: string;
as?: string;
}
defineProps<Props>();
</script>
<template>
<Link
:href="href"
:tabindex="tabindex"
:method="method"
:as="as"
class="text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:!decoration-current dark:decoration-neutral-500"
>
<slot />
</Link>
</template>