Skip to content

Commit 3e4a9bf

Browse files
authored
refactor: allow passing input prefix icon size (#557)
1 parent 7649368 commit 3e4a9bf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

resources/views/inputs/includes/input-prefix-icon.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
'icon',
33
'position' => 'right',
44
'iconClass' => '',
5+
'iconSize' => 'base',
56
])
67

78
@php
@@ -13,5 +14,5 @@
1314
@endphp
1415

1516
<div class="input-prefix-icon {{ $positionClasses }} {{ $iconClass }}">
16-
<x-ark-icon :name="$icon" />
17+
<x-ark-icon :name="$icon" :size="$iconSize" />
1718
</div>

resources/views/inputs/input-with-prefix.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
@include('ark::inputs.includes.input-prefix-icon', [
3131
'icon' => $icon,
3232
'position' => 'left',
33+
'iconSize' => 'sm'
3334
])
3435
@elseif($prefix ?? false)
3536
<div @class(['input-prefix', $prefixClass ?? 'bg-theme-primary-50 dark:bg-theme-secondary-800'])>

0 commit comments

Comments
 (0)