add list support
All checks were successful
Deployment / Deploy website (push) Successful in 3m39s
Deployment / Deploy strapi (push) Successful in 2m49s

This commit is contained in:
Benjamin Palko 2025-06-20 15:54:20 -04:00
parent 8281fdc4e2
commit ac37b5dd76
4 changed files with 86 additions and 1 deletions

View file

@ -0,0 +1,22 @@
<script lang="ts">
import type { Snippet } from 'svelte';
interface Props {
children?: Snippet;
ordered?: boolean;
loose?: boolean;
start?: number;
}
const { children, ordered }: Props = $props();
</script>
{#if ordered}
<ol class="my-2">
{@render children?.()}
</ol>
{:else}
<ul class="my-2">
{@render children?.()}
</ul>
{/if}