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
Hey, just a quick question, because i didn't find any issues about it:
I want to build an alert component with AlertTitle, AlertDescription and AlertIcon as seperate components that should be used as child components of the root Alert component.
because i don't really like the visual bloat of the second variant. But as i found out it doesn't work that way, and the alert:icon component is rendered inside the content block of the alert:root component instead of the icon block.
So the question is: is there a away to outsource the twig blocks definition into the seperate components to avoid having to explicitly set the blocks everytime?
Thanks in advance and if anything is unclear, let me know.
The text was updated successfully, but these errors were encountered:
This is the right choice here. But you also can use, once per component, the "magical" content block. If you pass content inside a component, it will be assigned to the content block (if you declare it)
Hey, just a quick question, because i didn't find any issues about it:
I want to build an alert component with AlertTitle, AlertDescription and AlertIcon as seperate components that should be used as child components of the root Alert component.
The root component looks kind of like this:
I thought i could just outsource the
<twig:block name='icon'/>
tag into the seperate component:so that the icon is automatically rendered inside of the root component where its supposed to be rendered and i could just use the component like
instead of
because i don't really like the visual bloat of the second variant. But as i found out it doesn't work that way, and the
alert:icon
component is rendered inside the content block of thealert:root
component instead of the icon block.So the question is: is there a away to outsource the twig blocks definition into the seperate components to avoid having to explicitly set the blocks everytime?
Thanks in advance and if anything is unclear, let me know.
The text was updated successfully, but these errors were encountered: