mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
Updated text input component
Updated text input component to include placeholder and error message output if exists
This commit is contained in:
parent
5f18ccff2c
commit
5fbadf8063
@ -1,5 +1,6 @@
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend"><span class="input-group-text">{{$title}}</span></div>
|
||||
<input type="text" name="{{$name}}" class="form-control" minlength="{{$min ?? 0}}" maxlength="{{$max ?? 99999}}"
|
||||
value="{{$value ?? ''}}" {{(isset($required))? 'required': ''}}>
|
||||
value="{{$value ?? ''}}" @if(isset($placeholder)) placeholder="{{$placeholder}}" @endif {{(isset($required))? 'required': ''}}>
|
||||
@error((string)$name)<span class="text-red-500">{{ $message }}</span>@enderror
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user