init commit
This commit is contained in:
commit
c9d982669a
461 changed files with 30317 additions and 0 deletions
26
resources/js/components/TextLink.svelte
Normal file
26
resources/js/components/TextLink.svelte
Normal file
|
@ -0,0 +1,26 @@
|
|||
<script lang="ts">
|
||||
import type { Method } from '@inertiajs/core';
|
||||
import { Link } from '@inertiajs/svelte';
|
||||
import type { Snippet } from 'svelte';
|
||||
|
||||
interface Props {
|
||||
href: string;
|
||||
tabindex?: number;
|
||||
method?: Method;
|
||||
as?: keyof HTMLElementTagNameMap;
|
||||
class?: string;
|
||||
children: Snippet;
|
||||
}
|
||||
|
||||
let { href, tabindex, method, as, class: className, children }: Props = $props();
|
||||
</script>
|
||||
|
||||
<Link
|
||||
{href}
|
||||
{tabindex}
|
||||
{method}
|
||||
{as}
|
||||
class="text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:!decoration-current dark:decoration-neutral-500 {className}"
|
||||
>
|
||||
{@render children()}
|
||||
</Link>
|
Loading…
Add table
Add a link
Reference in a new issue