Snippet list? #11844
Unanswered
kalkronline
asked this question in
Q&A
Snippet list?
#11844
Replies: 1 comment
-
Something like this should probably be done the same way as in Svelte 4: v4 <List items={[1, 2, 3]}>
<svelte:fragment slot="item" let:item={num}>
<p>{num}</p>
</svelte:fragment>
</List> <List items={[1, 2, 3]}>
{#snippet item(num)}
<p>{num}</p>
{/snippet}
</List> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to make a list component which wraps each element. This wasn't possible in Svelte4, how can I do this using the new snippet feature?
This is sort of what I was thinking this would look like, but it doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions