Files
Mangarr/templates/components/ToolBarButton.html.twig
Jérémy Guillot ba30d3102d Added:
- new simpler modal without bootstrap
- new loadingbutton component
- cleanupsome old code
- toolbar adjusments
2024-06-30 12:44:41 +02:00

13 lines
450 B
Twig

{# templates/components/ToolbarButton.html.twig #}
<div {{ attributes }}>
<button
class="flex flex-col justify-around min-h-14 w-min ml-4 items-center text-white group"
{% if action %}
{{ stimulus_action(controller|default('toolbar'), action) }}
{% endif %}
>
<i class="fas fa-{{ icon }} text-xl group-hover:text-green-500"></i>
<span class="text-xs">{{ text }}</span>
</button>
</div>