migrate: convert most components to svelte 5

This commit is contained in:
Xylight committed 2024-10-25 19:33:27 -07:00
1 parent d670f39f0a
commit 10ef4123da
225 files changed
+5441 -3341

No files matched your search

+16 -6
View File
@@ -1,14 +1,24 @@
<script lang="ts">
import { Badge } from 'mono-svelte'
export let name: string
export let description: string
export let badge: string | undefined = undefined
export let link: string = '#'
let clazz: string = ''
export { clazz as class }
interface Props {
name: string;
description: string;
badge?: string | undefined;
link?: string;
class?: string;
}
let {
name,
description,
badge = undefined,
link = '#',
class: clazz = ''
}: Props = $props();
</script>
<div class="flex flex-col w-max {clazz}">