@props([ 'label' => null, 'labelDescription' => null, 'labelClass' => null, 'hint' => null, 'for' => null, 'description' => null, 'error' => null, 'required' => false, ])
merge(['class' => 'flex flex-col gap-2']) }}> @if ($label) {{-- With a hint, label + hint are grouped so the hint sits tight under the label, with the usual gap before the input. The input should reference {for}-hint in its aria-describedby. --}} @if ($hint)
@endif @if ($hint)

{{ $hint }}

@endif @endif {{ $slot }} @if ($description && ! $error)

{{ $description }}

@endif @if ($error) @endif