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
Copy file name to clipboardExpand all lines: src/TwigComponent/doc/index.rst
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -929,6 +929,10 @@ component's template:
929
929
My Component!
930
930
</div>
931
931
932
+
.. note::
933
+
934
+
Quick reminder that passing an array of attributes to the *Component* requires the spread operator syntax (``<twig:MyComponent {{ ...attributes }} />``). See `Component HTML Syntax`_.
935
+
932
936
When rendering the component, you can pass an array of html attributes to add:
0 commit comments