Mercurial > packages > framework
comparison resources/views/components/form/text.blade.php @ 1:56d9c64d64aa
Setting up the base, still have plenty of work to be done here.
| author | luka |
|---|---|
| date | Mon, 09 Jun 2025 23:07:17 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:07e7262a8cce | 1:56d9c64d64aa |
|---|---|
| 1 @props(['name', 'label', 'value' => '', 'required' => false]) | |
| 2 | |
| 3 <div class="mb-4"> | |
| 4 <label for="{{ $name }}" class="block text-gray-700">{{ $label }}</label> | |
| 5 <input type="text" name="{{ $name }}" id="{{ $name }}" value="{{ old($name, $value) }}" | |
| 6 @if ($required) required @endif | |
| 7 class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring focus:ring-blue-200"> | |
| 8 @error($name) | |
| 9 <span class="text-red-600 text-sm">{{ $message }}</span> | |
| 10 @enderror | |
| 11 </div> |
