aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LandingInfoCard.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-07 21:16:25 -0800
committerAdam Soltys <[email protected]>2024-11-08 09:27:40 -0800
commit2b0f8339666dfa99e4db8a12b5effffaec9776f0 (patch)
tree0253780c569998b6c1a5f43026586e94916c3fee /src/components/LandingInfoCard.svelte
parente3d1a7817f70237d70c1ca5a790bab7eac2ff86c (diff)
downloadcoinos-ui-2b0f8339666dfa99e4db8a12b5effffaec9776f0.tar.gz
coinos-ui-2b0f8339666dfa99e4db8a12b5effffaec9776f0.zip
svelte 5
Diffstat (limited to 'src/components/LandingInfoCard.svelte')
-rw-r--r--src/components/LandingInfoCard.svelte13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/components/LandingInfoCard.svelte b/src/components/LandingInfoCard.svelte
index fadcb6c0..63951e86 100644
--- a/src/components/LandingInfoCard.svelte
+++ b/src/components/LandingInfoCard.svelte
@@ -1,10 +1,13 @@
<script>
import Image from "./Image.svelte";
- export let image;
- export let title;
- export let description = undefined;
- export let order = undefined;
+ let {
+ image,
+ title,
+ description = undefined,
+ order = undefined,
+ children
+ } = $props();
</script>
<div class="block lg:flex justify-center lg:space-x-20 items-center">
@@ -25,7 +28,7 @@
{#if description}
{description}
{:else}
- <slot />
+ {@render children?.()}
{/if}
</p>
</div>