@props(['name', 'label', 'type' => 'text', 'value' => null, 'hint' => null, 'required' => false, 'rows' => 4]) @php $key = str_replace(['[', ']'], ['.', ''], $name); $id = 'f-' . str_replace(['[', ']', '.'], ['-', '', '-'], $name); $cls = 'w-full rounded-2xl border bg-white px-4 text-[15px] text-on-background placeholder:text-outline focus:border-primary focus:outline-none focus:ring-2 focus:ring-tertiary ' . ($errors->has($key) ? 'border-error' : 'border-outline-variant'); @endphp
only('class') }}> @if ($type === 'textarea') @else except('class') }} class="{{ $cls }} min-h-[48px]"> @endif @if ($hint)

{{ $hint }}

@endif @error($key)

{{ $message }}

@enderror