coolify/resources/views/components/forms/select.blade.php
Andras Bacsai fd89735521 Added +add flows everywhere
ui: changed vibrant button to not so vibrant
2023-07-26 13:23:47 +02:00

19 lines
811 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.remove='text-white'
wire:dirty.class="text-black bg-warning" wire:loading.attr="disabled" name={{ $id }}
@if ($attributes->whereStartsWith('wire:model')->first()) {{ $attributes->whereStartsWith('wire:model')->first() }} @else wire:model.defer={{ $id }} @endif>
{{ $slot }}
</select>
</div>