first commit
This commit is contained in:
commit
e687b4437b
418 files changed
+33577
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<script lang="ts">
|
||||
import type { LinkComponentBaseProps, Method } from '@inertiajs/core';
|
||||
import { Link } from '@inertiajs/svelte';
|
||||
import type { Snippet } from 'svelte';
|
||||
|
||||
let {
|
||||
href,
|
||||
tabindex,
|
||||
method,
|
||||
as,
|
||||
children,
|
||||
...rest
|
||||
}: {
|
||||
href: LinkComponentBaseProps['href'];
|
||||
tabindex?: number;
|
||||
method?: Method;
|
||||
as?: keyof HTMLElementTagNameMap;
|
||||
children?: Snippet;
|
||||
[key: string]: unknown;
|
||||
} = $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"
|
||||
{...rest}
|
||||
>
|
||||
{@render children?.()}
|
||||
</Link>
|
||||
Reference in new issue
Block a user