Open
Description
Hi,
I'm trying to render a Twig component using a dynamically passed name. Is there a way to achieve this in Twig? Here is an example of what I'm attempting to do:
{% set my_string = 'Modal' %}
{% component (my_string) with {type: 'success'} %}
{% block content %}{{ ...content }}{% endblock %}
{% endcomponent %}
I want to be able to dynamically set the component name using the my_string variable. Any guidance or suggestions on how to accomplish this would be greatly appreciated!
Thank you!