7 lines
451 B
PHP
7 lines
451 B
PHP
@props(['disabled' => false, 'error' => null])
|
|
|
|
<input {{ $disabled ? 'disabled' : ''}} {!! $attributes->merge(['class' => 'bg-neutral-800 border-neutral-700 text-white text-sm rounded-lg focus:ring-neon-lime focus:border-neon-lime block w-full p-2.5 placeholder-gray-500 transition-colors ' . ($error ? 'border-red-500 focus:border-red-500 focus:ring-red-500' : '')]) !!}>
|
|
|
|
@if($error)
|
|
<p class="mt-1 text-xs text-red-400">{{ $error }}</p>
|
|
@endif |