You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It didn't occur to me to look in the snippets section, maybe a link to that section under $props would be a good idea? imo the children prop seems more prop related than snippet related; you don't have to write #snippet to use children but you do have to write $props
You don't have to write {#snippet} but you do have to write {@render} - which turns up relevant stuff when searched for in the documentation.
Is the concern here that you didn't know how to do something in Svelte - or is the concern that you were reading someone else's Svelte components and it wasn't clear what it was for?
I don't think we necessarily want to try to make it so that everything in the reference documentation links to all of the other adjacent things that you might be interested in. The tutorial exists for this sort of high-level explanation of the big concepts in a good order - and this is all covered in the tutorial.
I can't find anywhere in the docs that directly explains the
children
prop, what it's for, and how to use it. Have I missed something?I can see several places where
children
is used, but none of them are actually discussing the prop itself.A section under https://svelte.dev/docs/svelte/$props which explains the
children
prop directly would be ideal imo.The text was updated successfully, but these errors were encountered: