Skip to content

Commit 4fc74df

Browse files
committed
fix icon input
1 parent 3efd25b commit 4fc74df

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

resources/views/components/input/index.blade.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99

1010
@if ($icon)
1111
<span class="absolute left-0 top-0 flex h-full items-center justify-center pl-1.5 text-gray-400">
12-
@svg($icon, [
13-
'class' => 'size-5 p-0.5',
14-
])
12+
<span class="size-5 p-0.5">
13+
@if (is_string($icon))
14+
@svg($icon)
15+
@else
16+
{!! $icon !!}
17+
@endif
18+
</span>
1519
</span>
1620
@endif
1721

0 commit comments

Comments
 (0)