Skip to content

Commit

Permalink
Add flex-row to input
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed May 3, 2024
1 parent eb4536b commit 5f627b8
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions resources/views/components/forms/input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,22 @@ class="{{ $attributes->classFor('label') }}"
{{ $label }}
</label>

{{ $prepend }}
<div class="flex flex-row flex-nowrap gap-3 items-center">
{{ $prepend }}

<input {{ $attributes
->classMerge([
'input',
'error' => $errors->has($attributes->wireModel()),
])
->merge([
...['id' => $attributes->wireKey(), 'type' => 'text'],
...$attributes->whereStartsWith('wire:model')
])
}} />
<input {{ $attributes
->classMerge([
'input',
'error' => $errors->has($attributes->wireModel()),
])
->merge([
...['id' => $attributes->wireKey(), 'type' => 'text'],
...$attributes->whereStartsWith('wire:model')
])
}} />

{{ $append }}
{{ $append }}
</div>

@if ($hint)
<p class="{{ $attributes->classFor('hint') }}">{{ $hint }}</p>
Expand Down

0 comments on commit 5f627b8

Please sign in to comment.