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

+8 -3
View File
@@ -2,7 +2,12 @@
import { Material } from '../index.js'
import { Icon, InformationCircle } from 'svelte-hero-icons'
export let content: string | undefined = undefined
interface Props {
content?: string | undefined;
children?: import('svelte').Snippet;
}
let { content = undefined, children }: Props = $props();
</script>
<Material
@@ -18,8 +23,8 @@
class="text-primary-900 dark:text-primary-100"
/>
<p>
{#if $$slots.default}
<slot />
{#if children}
{@render children?.()}
{:else if content}
{content}
{/if}