19 lines
630 B
PHP
19 lines
630 B
PHP
@props([
|
|
'name',
|
|
'label',
|
|
'value' => '',
|
|
'placeholder' => '',
|
|
'rows' => 4,
|
|
])
|
|
|
|
<div>
|
|
<label for="{{ $name }}" class="mb-2 block text-sm font-medium text-slate-700">{{ $label }}</label>
|
|
<textarea
|
|
id="{{ $name }}"
|
|
name="{{ $name }}"
|
|
rows="{{ $rows }}"
|
|
placeholder="{{ $placeholder }}"
|
|
{{ $attributes->merge(['class' => 'w-full rounded-2xl border border-slate-200 bg-white px-4 py-3 text-sm text-slate-700 placeholder:text-slate-400 focus:border-indigo-300 focus:outline-none focus:ring-4 focus:ring-indigo-100']) }}
|
|
>{{ old($name, $value) }}</textarea>
|
|
</div>
|