Closed
Description
Hey! I want your though before to start working on something.
Today if you have a TwigComponent
#[AsTwigComponent]
class Button
{
...
}
{% props label %}
<button>
{{ label }}
</button>
The props label defined in the template will not be taken in to account because the Button component is not an anonymous component.
What do you think about letting the ability to merge props defined into the template with props defined in the class.
If a conflict happen raise an error.
WDYT?
Metadata
Metadata
Assignees
Labels
No labels