@props(['text' => 'Submit', 'loadingText' => 'Processing...', 'target', 'class' => 'btn-primary w-100'])
<button type="submit" class="btn {{ $class }}" wire:loading.remove {{ $attributes }} wire:target="{{ $target }}">{{ $text }}</button>

<button class="btn {{ $class }}" type="button" disabled wire:loading wire:target="{{ $target }}">
    <span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
    {{ $loadingText }}
</button>