diff --git a/packages/forms/resources/views/components/text-input.blade.php b/packages/forms/resources/views/components/text-input.blade.php index 01a00022c9..086a8b5caf 100644 --- a/packages/forms/resources/views/components/text-input.blade.php +++ b/packages/forms/resources/views/components/text-input.blade.php @@ -8,11 +8,12 @@ :required="$formComponent->required" >
- @if($formComponent->prefix) + @if ($formComponent->prefix) {{ $formComponent->prefix }} @endif + autocomplete ? "autocomplete=\"{$formComponent->autocomplete}\"" : null !!} {!! $formComponent->autofocus ? 'autofocus' : null !!} @@ -24,7 +25,7 @@ {!! $formComponent->placeholder ? "placeholder=\"{$formComponent->placeholder}\"" : null !!} {!! $formComponent->required ? 'required' : null !!} {!! $formComponent->type ? "type=\"{$formComponent->type}\"" : null !!} - class="block w-full rounded-r-md placeholder-gray-400 focus:placeholder-gray-500 placeholder-opacity-100 focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50 {{ $errors->has($formComponent->name) ? 'border-danger-600 motion-safe:animate-shake' : 'border-gray-300' }} {{ !$formComponent->prefix ? 'rounded-l-md' : null }}" + class="block w-full rounded-r-md placeholder-gray-400 focus:placeholder-gray-500 placeholder-opacity-100 focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50 {{ ! $formComponent->prefix ? 'rounded-l-md' : null }} {{ $errors->has($formComponent->name) ? 'border-danger-600 motion-safe:animate-shake' : 'border-gray-300' }}" {!! Filament\format_attributes($formComponent->extraAttributes) !!} />