Rely on $attributes behavior rendering passed attributes

This commit is contained in:
Marcus Moore 2024-08-20 11:00:39 -07:00
parent d99b306ae9
commit bbdbec7197
No known key found for this signature in database

View file

@ -2,9 +2,6 @@
@props([
'type' => '',
'class' => false,
'style' => false,
'id' => false,
'title' => false,
])
<i {{ $attributes->merge(['class' => Icon::icon($type).' '.$class]) }} {{ isset($style) ? $attributes->merge(['style' => $style]): '' }} {{ isset($title) ? $attributes->merge(['title' => $title]): '' }} aria-hidden="true"></i>
<i {{ $attributes->merge(['class' => Icon::icon($type)]) }} aria-hidden="true"></i>