@props([ 'id' => $attributes->has('id'), 'type' => $attributes->get('type') ?? 'text', 'label' => $attributes->has('label'), 'readonly' => null, 'required' => null, 'disabled' => null, 'helper' => $attributes->has('helper'), 'noDirty' => $attributes->has('noDirty'), 'cannotPeak' => $attributes->has('cannotPeak'), ])
merge(['class' => 'w-full form-control']) }}> @if ($label) @endif @if ($type === 'password')
$cannotPeak, ]) @if ($id) id={{ $id }} name={{ $id }} wire:model.defer={{ $id }} @endisset @if ($disabled !== null) disabled @endif @if ($required !== null) required @endif @if ($readonly !== null) readonly @endif @if (!$noDirty && $id) wire:dirty.class="input-warning" @endif {{ $attributes }} /> @if (!$cannotPeak) @if (!$disabled) @else @endif @endif
@else @endif @error($id) @enderror