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

+9 -4
View File
@@ -1,6 +1,11 @@
<script lang="ts">
let clazz: string = ''
export { clazz as class }
interface Props {
class?: string
children?: import('svelte').Snippet
action?: import('svelte').Snippet
}
let { class: clazz = '', children, action }: Props = $props()
</script>
<div
@@ -8,8 +13,8 @@
text-sm text-slate-600 dark:text-zinc-400 gap-2 flex-wrap {clazz}"
>
<span class="font-medium text-left">
<slot />
{@render children?.()}
</span>
<hr class="border-slate-200 flex-1 w-full dark:border-zinc-800" />
<slot name="action" />
{@render action?.()}
</div>