{{-- Select Component - TailAdmin style Usage: --}} @props([ 'name' => null, 'label' => null, 'error' => null, 'hint' => null, 'disabled' => false, 'required' => false, 'size' => 'md', ]) @php $sizeClasses = [ 'sm' => 'h-9 text-theme-xs py-2', 'md' => 'h-11 text-theme-sm py-2.5', 'lg' => 'h-12 text-base py-3', ]; $sizeClass = $sizeClasses[$size] ?? $sizeClasses['md']; $selectClasses = 'block w-full appearance-none rounded-lg border bg-transparent px-4 pr-10 shadow-theme-xs transition-colors duration-150 placeholder:text-gray-400 focus:outline-none focus:ring-3 disabled:cursor-not-allowed disabled:bg-gray-50 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-gray-500 dark:disabled:bg-gray-800'; if ($error) { $selectClasses .= ' border-error-300 focus:border-error-300 focus:ring-error-500/10 dark:border-error-700'; } else { $selectClasses .= ' border-gray-300 focus:border-brand-300 focus:ring-brand-500/10 dark:border-gray-700 dark:focus:border-brand-600'; } @endphp
only('class')->class(['space-y-2']) }}> @if($label) @endif
@if($error)

{{ $error }}

@elseif($hint)

{{ $hint }}

@endif