We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b779f commit c360a6fCopy full SHA for c360a6f
site/content/docs/03-template-syntax.md
@@ -1617,8 +1617,12 @@ The usual shorthand rules apply — `let:item` is equivalent to `let:item={item}
1617
</ul>
1618
1619
<!-- App.svelte -->
1620
-<!-- the `let:itemData={thing}` directive makes the value that `FancyList` passes as the `itemData` prop
1621
- available to the slot template as a variable called `thing` -->
+<!-- `itemData` can now be used in the content you pass into the slot using `let:itemData` -->
+<FancyList {items} let:itemData>
1622
+ <div>{itemData.text}</div>
1623
+</FancyList>
1624
+
1625
+<!-- You can also rename it using the `let:itemData={thing}` syntax. -->
1626
<FancyList {items} let:itemData={thing}>
1627
<div>{thing.text}</div>
1628
</FancyList>
0 commit comments