chore: migrate to svelte 5

This commit is contained in:
2026-01-19 17:19:50 +01:00
parent 0f6d88355c
commit b221afee4a
6 changed files with 537 additions and 624 deletions
+19 -7
View File
@@ -1,17 +1,29 @@
<script>
import ImageTile from "./ImageTile.svelte";
/** @type {string} **/
export let src;
/** @type {string} **/
export let href;
/** @type {"_self" | "_blank" | "_parent" | "_top" } **/
export let target = "_self";
/**
* @typedef {Object} Props
* @property {string} src
* @property {string} href
* @property {"_self" | "_blank" | "_parent" | "_top" } [target]
* @property {import('svelte').Snippet} [children]
*/
/** @type {Props} */
let {
src,
href,
target = "_self",
children
} = $props();
</script>
<div>
<ImageTile {src}>
<a {href} {target} class="flex items-center justify-center h-full">
<slot />
{@render children?.()}
</a>
</ImageTile>
</div>