diff --git a/dev/getting_started/adding_slots/index.html b/dev/getting_started/adding_slots/index.html index f6683448..d5d2aece 100644 --- a/dev/getting_started/adding_slots/index.html +++ b/dev/getting_started/adding_slots/index.html @@ -117,4 +117,4 @@ <div class="calendar"> Today's date is <i>2024-12-16</i> </div> -
Info
When to use slots vs variables?
Generally, slots are more flexible - you can access the slot data, even the original slot content. Thus, slots behave more like functions that render content based on their context.
On the other hand, variables are simpler - the variable you pass to a component is what will be used.
Moreover, slots are treated as part of the template - for example the CSS scoping (work in progress) is applied to the slot content too.