Skip to content

Commit

Permalink
fix icon input
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Nov 10, 2024
1 parent 3efd25b commit 4fc74df
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions resources/views/components/input/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@

@if ($icon)
<span class="absolute left-0 top-0 flex h-full items-center justify-center pl-1.5 text-gray-400">
@svg($icon, [
'class' => 'size-5 p-0.5',
])
<span class="size-5 p-0.5">
@if (is_string($icon))
@svg($icon)
@else
{!! $icon !!}
@endif
</span>
</span>
@endif

Expand Down

0 comments on commit 4fc74df

Please sign in to comment.