@props([ 'label' => null, 'name' => null, 'error' => null, 'hint' => null, 'required' => false, 'disabled' => false, 'rows' => 4, ]) @php $id = $attributes->get('id') ?? $name ?? 'textarea-' . uniqid(); $textareaClasses = 'input'; if ($error) { $textareaClasses .= ' error'; } $textareaClasses .= ' ' . ($attributes->get('class') ?? ''); @endphp
{{ $error }}
@endif @if($hint && !$error){{ $hint }}
@endif