19 lines
645 B
PHP
19 lines
645 B
PHP
<div class="w-full">
|
|
@if ($label)
|
|
<label for="small-input"
|
|
class="flex items-center gap-1 mb-2 text-sm font-medium text-neutral-400">{{ $label }}
|
|
@if ($required)
|
|
<span class="text-warning">*</span>
|
|
@endif
|
|
@if ($helper)
|
|
<x-helper :helper="$helper" />
|
|
@endif
|
|
</label>
|
|
@endif
|
|
<select {{ $attributes->merge(['class' => $defaultClass]) }} @required($required)
|
|
wire:dirty.class="text-black bg-warning" wire:loading.attr="disabled" name={{ $id }}
|
|
wire:model.defer={{ $id }}>
|
|
{{ $slot }}
|
|
</select>
|
|
</div>
|