migrate: convert most components to svelte 5
This commit is contained in:
1 parent
d670f39f0a
commit
10ef4123da
225 files changed
+5441
-3341
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user