
@props(['class', 'text'])
<button x-show="!processing" class="btn {{ $class }}" {{ $attributes }}>{{ $text }}</button>
<button class="btn {{ $class }}" type="button" disabled x-show="processing" x-cloak>
    <span class="spinner-border spinner-border-sm" aria-hidden="true"></span>
    <span role="status">Loading...</span>
</button>