Files
myep-team/templates/components/messagebox.html.twig
T

5 lines
318 B
Twig

<div class="{{ html_classes('flex items-start space-x-4 p-4 w-full mb-8 border-l-4', { 'border-brand bg-brand-light text-ink': type != 'error', 'border-red-700 bg-red-50 text-red-950': type == 'error' }) }}">
{{ icon(type == 'error' ? 'alert' : 'info', 'w-6 h-6 shrink-0') }}
<span>{{ message }}</span>
</div>