Mercurial > packages > framework
diff publishable/resources/views/components/form/textarea.blade.php @ 2:b44434aaa767
Moving around the components.
Made a big step in the right direction with the Builder and named joins being accessible.
| author | luka |
|---|---|
| date | Wed, 18 Jun 2025 22:28:47 -0400 |
| parents | resources/views/components/form/textarea.blade.php@56d9c64d64aa |
| children | 84c75d9d90be |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/publishable/resources/views/components/form/textarea.blade.php Wed Jun 18 22:28:47 2025 -0400 @@ -0,0 +1,22 @@ +@props(['name', 'label', 'value' => '', 'required' => false]) + +<div class="mb-4"> + <label for="{{ $name }}" class="block text-gray-700 font-medium mb-1"> + {{ $label }} + @if($required) + <span class="text-red-500">*</span> + @endif + </label> + + <textarea + name="{{ $name }}" + id="{{ $name }}" + @if ($required) required @endif + class="markdown-editor mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring focus:ring-blue-200" + >{{ old($name, $value) }}</textarea> + + @error($name) + <span class="text-red-600 text-sm">{{ $message }}</span> + @enderror +</div> +@include('includes.easymde')
