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 c7e4532 commit f31e030Copy full SHA for f31e030
src/TwigComponent/doc/index.rst
@@ -1618,15 +1618,15 @@ when using nested components:
1618
</twig:Card>
1619
1620
{# ✅ this also works because it only uses the Twig syntax #}
1621
- <twig:Card>
+ {% component Card %}
1622
{# ... #}
1623
1624
- <twig:block name="footer">
+ {% block footer %}
1625
{% component 'Button:Primary' with {isBlock: true} %}
1626
{% block content %}Edit{% endblock %}
1627
{% endcomponent %}
1628
- </twig:block>
1629
- </twig:Card>
+ {% endblock %}
+ {% endcomponent %}
1630
1631
If you're using `Live Components`_, then there *are* some guidelines related to
1632
how the re-rendering of parent and child components works. Read `Live Nested Components`_.
0 commit comments