diff options
| author | Adam Soltys <[email protected]> | 2024-11-07 21:16:25 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-08 09:27:40 -0800 |
| commit | 32fcc461cd43c8907df5e306d520bb671307eab1 (patch) | |
| tree | 0253780c569998b6c1a5f43026586e94916c3fee /src/components/LandingInfoCard.svelte | |
| parent | be5aa52cea1d57c875cfb22d25c6a866b8de2239 (diff) | |
| download | coinos-ui-32fcc461cd43c8907df5e306d520bb671307eab1.tar.gz coinos-ui-32fcc461cd43c8907df5e306d520bb671307eab1.zip | |
svelte 5
Diffstat (limited to 'src/components/LandingInfoCard.svelte')
| -rw-r--r-- | src/components/LandingInfoCard.svelte | 13 |
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> |
