Open
Description
Hello,
What if we can pass attributes to blocks, for example I'd like to create complex Dropdown component with stimulus, so without Twig component I'll have following markup
<div {{ stimulus_controller('dropdown', {'placement':'bottom'})>
<button {{ stimulus_action('dropdown', 'toggle') }} class="button-classes">Open/Close</button>
<div {{ stimulus_target('dropdown', 'block') class="some-classes">
<!-- some menu items -->
</div>
</div>
so it will be cool to have this component markup:
<twig:Dropdown placement="bottom">
<twig:block name="toggler" class="button-classes" content="Open/Close"/>
<twig:block name="dropdownBlock" class="some-classes">
<!-- some menu items -->
</twig:block>
</twig:Dropdown>
WDYT?