update to svelte 5 and tw 4 etc

This commit is contained in:
David Senoner 2025-05-19 16:25:20 +02:00
parent 2ea45109d1
commit e3b9a83e73
327 changed files with 5275 additions and 3363 deletions

View file

@ -1,5 +1,7 @@
<script>
import { cn } from "$lib/utils.js";
<script lang="ts">
import type { HTMLAnchorAttributes } from "svelte/elements";
import type { Snippet } from "svelte";
import { cn, type WithElementRef } from "$lib/utils.js";
let {
ref = $bindable(null),
@ -8,9 +10,12 @@
child,
children,
...restProps
}: WithElementRef<HTMLAnchorAttributes> & {
child?: Snippet<[{ props: HTMLAnchorAttributes }]>;
} = $props();
const attrs = $derived({
"data-slot": "breadcrumb-link",
class: cn("hover:text-foreground transition-colors", className),
href,
...restProps,